def deleted_items(self, entity_type=None): """Recently deleted items. Read-only. Nullable.""" if entity_type: return DirectoryObjectCollection( self.context, ResourcePath(entity_type, ResourcePath("deletedItems", self.resource_path))) else: return self.properties.get( 'deletedItems', DirectoryObjectCollection( self.context, ResourcePath("deletedItems", self.resource_path)))
def owners(self): """Directory objects that are owners of the application. Read-only. :rtype: DirectoryObjectCollection """ return self.get_property('owners', DirectoryObjectCollection(self.context, ResourcePath("owners", self.resource_path)))
def owners(self): """The owners of the group. """ return self.properties.get( 'owners', DirectoryObjectCollection( self.context, ResourcePath("owners", self.resource_path)))
def transitive_member_of(self): """Get groups, directory roles that the user is a member of. This API request is transitive, and will also return all groups the user is a nested member of. """ return self.properties.get( 'transitiveMemberOf', DirectoryObjectCollection( self.context, ResourcePath("transitiveMemberOf", self.resource_path)))
def members(self): """Users and groups that are members of this group.""" if self.is_property_available('members'): return self.properties['members'] else: return DirectoryObjectCollection( self.context, ResourcePathEntity(self.context, self.resourcePath, "members"))
def owners(self): """The owners of the group.""" if self.is_property_available('owners'): return self.properties['owners'] else: return DirectoryObjectCollection( self.context, ResourcePathEntity(self.context, self.resourcePath, "owners"))
def members(self): """Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. :rtype: DirectoryObjectCollection """ from office365.directory.directory_object_collection import DirectoryObjectCollection return self.get_property('members', DirectoryObjectCollection(self.context, ResourcePath("members", self.resource_path)))
def members(self): """Users and groups that are members of this group. :rtype: DirectoryObjectCollection """ return self.get_property( 'members', DirectoryObjectCollection( self.context, ResourcePath("members", self.resource_path)))
def owners(self): """Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. :rtype: DirectoryObjectCollection """ return self.get_property( 'owners', DirectoryObjectCollection( self.context, ResourcePath("owners", self.resource_path)))
def transitive_members(self): """ Get a list of the group's members. A group can have members, devices, organizational contacts, and other groups as members. This operation is transitive and returns a flat list of all nested members. """ return self.properties.get( 'transitiveMembers', DirectoryObjectCollection( self.context, ResourcePath("transitiveMembers", self.resource_path)))
def direct_reports(self): """ Get a user's direct reports. :rtype: EntityCollection """ return self.get_property( 'directReports', DirectoryObjectCollection( self.context, ResourcePath("directReports", self.resource_path)))
def transitive_member_of(self): """ Get groups that the group is a member of. This operation is transitive and will also include all groups that this groups is a nested member of. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. """ return self.properties.get( 'transitiveMemberOf', DirectoryObjectCollection( self.context, ResourcePath("transitiveMemberOf", self.resource_path)))
def member_of(self): """Get groups and directory roles that the user is a direct member of.""" return self.properties.get( 'memberOf', DirectoryObjectCollection( self.context, ResourcePath("memberOf", self.resource_path)))
def directory_objects(self): """Get Directory Objects""" return DirectoryObjectCollection(self, ResourcePath("directoryObjects"))