Show / Hide Table of Contents

Interface IRoleCreateService

Roles create data access interface.

Namespace: Microsoft.GNS.Roster.Service
Assembly: Microsoft.GNS.Roster.Service.dll
Syntax
public interface IRoleCreateService

Methods

View Source

CreateRoleAsync(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.

  • View Source
In this article
Back to top Generated by DocFX