models.active_directory_principal module¶
-
class
models.active_directory_principal.
ActiveDirectoryPrincipal
(domain=None, full_name=None, object_class=None, principal_name=None, sid=None)[source]¶ Bases:
object
Implementation of the ‘ActiveDirectoryPrincipal’ model.
Specifies information about a single principal in an Active Directory.
- Attributes:
- domain (string): Specifies the domain name of the where the principal’
account is maintained.
- full_name (string): Specifies the full name (first and last names) of
the principal.
- object_class (ObjectClassEnum): Specifies the object class of the
principal (either ‘kGroup’ or ‘kUser’). ‘kUser’ specifies a user object class. ‘kGroup’ specifies a group object class. ‘kComputer’ specifies a computer object class. ‘kWellKnownPrincipal’ specifies a well known principal.
principal_name (string): Specifies the name of the principal. sid (string): Specifies the unique Security id (SID) of the
principal.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.