class Principal_v1
Principal class is a representation of an identity (user/group).
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/sharing/principal.py
4 - 42
moderate
Purpose
Principal class is a representation of an identity (user/group).
Source Code
class Principal(ClientValue):
"""Principal class is a representation of an identity (user/group)."""
def __init__(
self,
id_=None,
directory_object_id=None,
email=None,
expiration=None,
is_active=None,
is_external=None,
job_title=None,
login_name=None,
name=None,
):
"""
:param int id_: Id of the Principal in SharePoint's UserInfo List.
:param str directory_object_id:
:param str email: Email address of the Principal.
:param str expiration:
:param bool is_active: Boolean value representing if the Principal is Active.
:param bool is_external: Boolean value representing if the Principal is an external user.
:param str job_title: The Job Title of the Principal.
:param str login_name: LoginName of the Principal.
:param str name: Name of the Principal.
"""
self.id = id_
self.directoryObjectId = directory_object_id
self.email = email
self.expiration = expiration
self.isActive = is_active
self.isExternal = is_external
self.jobTitle = job_title
self.loginName = login_name
self.name = name
@property
def entity_type_name(self):
return "SP.Sharing.Principal"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Parameter of type ClientValue
Return Value
Returns unspecified type
Class Interface
Methods
__init__(self, id_, directory_object_id, email, expiration, is_active, is_external, job_title, login_name, name)
Purpose: :param int id_: Id of the Principal in SharePoint's UserInfo List. :param str directory_object_id: :param str email: Email address of the Principal. :param str expiration: :param bool is_active: Boolean value representing if the Principal is Active. :param bool is_external: Boolean value representing if the Principal is an external user. :param str job_title: The Job Title of the Principal. :param str login_name: LoginName of the Principal. :param str name: Name of the Principal.
Parameters:
id_: Parameterdirectory_object_id: Parameteremail: Parameterexpiration: Parameteris_active: Parameteris_external: Parameterjob_title: Parameterlogin_name: Parametername: Parameter
Returns: None
entity_type_name(self)
property
Purpose: Performs entity type name
Returns: None
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
# Example usage:
# result = Principal(bases)
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class Principal 80.7% similar
-
class PrincipalInfo 70.1% similar
-
class PrincipalType 63.0% similar
-
class AppPrincipalName 61.8% similar
-
class User_v1 61.6% similar