Interface IRoleCreateService
Roles create data access interface.
Namespace: Microsoft.GNS.Roster.Service
Assembly: Microsoft.GNS.Roster.Service.dll
Syntax
public interface IRoleCreateService
Methods
View SourceCreateRoleAsync(string, string, Scope, IEnumerable<IRosterPrincipal>, IEnumerable<IRosterPrincipal>?)
Creates a security role.
Declaration
Task<IRosterRole> CreateRoleAsync(string name, string description, Scope scope, IEnumerable<IRosterPrincipal> admins, IEnumerable<IRosterPrincipal>? members = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the role. |
string | description | The description of the role. |
Scope | scope | The role's scope. |
IEnumerable<IRosterPrincipal> | admins | An enumerable list of users who will be administrators of the role. |
IEnumerable<IRosterPrincipal> | members | An enumerable list of users who will be members of the role. |
Returns
Type | Description |
---|---|
Task<IRosterRole> | An object representing the Roster role. |