Show / Hide Table of Contents

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 Source

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

View Source

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>
View Source

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.

  • View Source
In This Article
Back to top Generated by DocFX