Interface ISharePointGroup
Public interface to define a SharePoint Group
Assembly: PnP.Core.dll
Syntax
public interface ISharePointGroup : IDataModel<ISharePointGroup>, IDataModelParent, IDataModelWithContext, ISupportModules<ISharePointGroup>, IDataModelGet<ISharePointGroup>, IDataModelLoad<ISharePointGroup>, IDataModelUpdate, IDataModelDelete, ISharePointPrincipal, IQueryableDataModel
Properties
A special property used to add an asterisk to a $select statement
Declaration
Property Value
Allow members to edit the group members
Declaration
bool AllowMembersEditMembership { get; set; }
Property Value
Allow requests to join or leave the group
Declaration
bool AllowRequestToJoinLeave { get; set; }
Property Value
Automatically accept requests to join or leave the group
Declaration
bool AutoAcceptRequestToJoinLeave { get; set; }
Property Value
Can the current user edit the group members
Declaration
bool CanCurrentUserEditMembership { get; set; }
Property Value
Can the current user manage the group
Declaration
bool CanCurrentUserManageGroup { get; set; }
Property Value
Can the current user view the group membership
Declaration
bool CanCurrentUserViewMembership { get; set; }
Property Value
Group description. Note that HTML tags will be stripped and that the max length of the description will be limited to 511 characters
Declaration
string Description { get; set; }
Property Value
Only members can see other group members
Declaration
bool OnlyAllowMembersViewMembership { get; set; }
Property Value
Declaration
string OwnerTitle { get; }
Property Value
Email configuration for the group join or leave operations
Declaration
string RequestToJoinLeaveEmailSetting { get; set; }
Property Value
Declaration
ISharePointUserCollection Users { get; }
Property Value
Methods
Adds role definitions for this group
Declaration
bool AddRoleDefinitions(params string[] names)
Parameters
Returns
Adds role definitions for this group
Declaration
Task<bool> AddRoleDefinitionsAsync(params string[] names)
Parameters
Returns
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
void AddUser(string loginName)
Parameters
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
Task AddUserAsync(string loginName)
Parameters
Returns
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
void AddUserBatch(Batch batch, string loginName)
Parameters
Batch
batch
|
System.String
loginName
|
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
void AddUserBatch(string loginName)
Parameters
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
Task AddUserBatchAsync(Batch batch, string loginName)
Parameters
Batch
batch
|
System.String
loginName
|
Returns
Adds a user to this group. Specify the full username, e.g. "i:0#.f|membership|user@domain.com"
Declaration
Task AddUserBatchAsync(string loginName)
Parameters
Returns
Retrieves the role definitions for this group
Declaration
IRoleDefinitionCollection GetRoleDefinitions()
Returns
Retrieves the role definitions for this group
Declaration
Task<IRoleDefinitionCollection> GetRoleDefinitionsAsync()
Returns
Removes role definitions for this group
Declaration
bool RemoveRoleDefinitions(params string[] names)
Parameters
Returns
Removes role definitions for this group
Declaration
Task<bool> RemoveRoleDefinitionsAsync(params string[] names)
Parameters
Returns
Removes a user given its id from a group.
Declaration
void RemoveUser(int userId)
Parameters
Removes a user given its id from a group.
Declaration
Task RemoveUserAsync(int userId)
Parameters
Returns
Removes a user given its id from a group.
Declaration
void RemoveUserBatch(Batch batch, int userId)
Parameters
Batch
batch
|
System.Int32
userId
|
Removes a user given its id from a group.
Declaration
void RemoveUserBatch(int userId)
Parameters
Removes a user given its id from a group.
Declaration
Task RemoveUserBatchAsync(Batch batch, int userId)
Parameters
Batch
batch
|
System.Int32
userId
|
Returns
Removes a user given its id from a group.
Declaration
Task RemoveUserBatchAsync(int userId)
Parameters
Returns
Sets a user as owner of the group.
Id of the user to set as owner
Declaration
void SetUserAsOwner(int userId)
Parameters
Sets a user as owner of the group.
Id of the user to set as owner
Declaration
Task SetUserAsOwnerAsync(int userId)
Parameters
Returns
Sets a user as owner of the group.
Batch on which to execute the request
Id of the user to set as owner
Declaration
void SetUserAsOwnerBatch(Batch batch, int userId)
Parameters
Batch
batch
|
System.Int32
userId
|
Sets a user as owner of the group.
Id of the user to set as owner
Declaration
void SetUserAsOwnerBatch(int userId)
Parameters
Sets a user as owner of the group.
Batch on which to execute the request
Id of the user to set as owner
Declaration
Task SetUserAsOwnerBatchAsync(Batch batch, int userId)
Parameters
Batch
batch
|
System.Int32
userId
|
Returns
Sets a user as owner of the group.
Id of the user to set as owner
Declaration
Task SetUserAsOwnerBatchAsync(int userId)
Parameters
Returns
Extension Methods