def siteUsers(self):
     """Get site users"""
     if self.is_property_available('SiteUsers'):
         return self.properties['SiteUsers']
     else:
         return UserCollection(
             self.context, ResourcePath("siteUsers", self.resource_path))
Пример #2
0
 def users(self):
     """Gets a collection of user objects that represents all of the users in the group."""
     from office365.sharepoint.user_collection import UserCollection
     if self.is_property_available('Users'):
         return self.properties['Users']
     else:
         return UserCollection(self.context,
                               ResourcePath("Users", self.resourcePath))
 def getSubwebsFilteredForCurrentUser(self, query):
     """Returns a collection of objects that contain metadata about subsites of the current site (2) in which the
     current user is a member. """
     users = UserCollection(self.context)
     qry = ServiceOperationQuery(
         self, "getSubwebsFilteredForCurrentUser", {
             "nWebTemplateFilter": query.WebTemplateFilter,
             "nConfigurationFilter": query.ConfigurationFilter
         }, None, None, users)
     self.context.add_query(qry)
     return users
Пример #4
0
 def users(self):
     """Gets a collection of user objects that represents all of the users in the group."""
     if self.is_property_available('Users'):
         return self.properties['Users']
     else:
         return UserCollection(self.context, ResourcePathEntry(self.context, self.resource_path, "Users"))