Interface ISecurityApi
Security related APIs.
Namespace: Microsoft.XboxStudios.SQTech.Roster.Client
Assembly: Microsoft.XboxStudios.SQTech.Roster.Client.Common.dll
Syntax
public interface ISecurityApi
Methods
View SourceUserHasContainerPermissions(String, Scope, PermissionFlags)
Checks if the current user has the specified permissions on a container.
Declaration
IApiRequest<bool> UserHasContainerPermissions(string containerName, Scope containerScope, PermissionFlags requiredPermissions)
Parameters
Type | Name | Description |
---|---|---|
System.String | containerName | |
Scope | containerScope | The container scope. |
PermissionFlags | requiredPermissions | The permissions flags to check. |
Returns
Type | Description |
---|---|
IApiRequest<System.Boolean> | If the permissions flags specified are assigned to the specified container then true is returned. Otherwise, false. |
UserInRole(String, Scope)
Determines if the current user is in a role.
Declaration
IApiRequest<bool> UserInRole(string roleName, Scope roleScope)
Parameters
Type | Name | Description |
---|---|---|
System.String | roleName | The role to check. |
Scope | roleScope | The scope of the role. |
Returns
Type | Description |
---|---|
IApiRequest<System.Boolean> |
UserInSecurityGroup(String)
Checks if the current user is in an Active Directory security group.
Declaration
IApiRequest<bool> UserInSecurityGroup(string securityGroupName)
Parameters
Type | Name | Description |
---|---|---|
System.String | securityGroupName | The Active Directory security group in which to check membership. |
Returns
Type | Description |
---|---|
IApiRequest<System.Boolean> | True if the user is a member. Otherwise, false. |