Compartilhar via


AuthorizationClient Class

Definition

public class AuthorizationClient
type AuthorizationClient = class
Public Class AuthorizationClient
Inheritance
AuthorizationClient

Constructors

AuthorizationClient(IAzureContext)

Creates AuthorizationClient using AzureContext instance.

Properties

ActiveDirectoryClient
AuthorizationManagementClient
RoleAssignmentNames
RoleDefinitionNames

Methods

CreateRoleAssignment(FilterRoleAssignmentsOptions)
CreateRoleAssignment(FilterRoleAssignmentsOptions, Guid)

Creates new role assignment.

CreateRoleDefinition(PSRoleDefinition)
CreateRoleDefinition(PSRoleDefinition, Guid)

Creates a new role definition.

FilterDenyAssignments(FilterDenyAssignmentsOptions, String)

Filters deny assignments based on the passed options.

FilterRoleAssignments(FilterRoleAssignmentsOptions, String, UInt64, UInt64)

Filters role assignments based on the passed options.

FilterRoleDefinitions(FilterRoleDefinitionOptions)
FilterRoleDefinitions(String, String, UInt64, UInt64)

Filters the existing role Definitions. If scopeAndBelow is true, Will fetch Roledefinitions with scopeAndBelow and provided name. Otherwise will fetch Roledefinitions with provided name

FilterRoleDefinitionsByCustom(String, UInt64, UInt64)

Filters the existing role Definitions by CustomRole.

GetAllRoleDefinitionsAtScopeAndBelow(String, UInt64, UInt64)
GetRoleDefinition(Guid, String)

Gets a single role definition by the role Id guid.

GetRoleDefinition(String)

Gets a single role definition by a fully qualified role Id

GetSingleRoleDefinitionByName(String, String)
ListRoleDefinitionsForScope(String, UInt64, UInt64)

Fetches all existing role Definitions under scope. Please notice that if scope is null, this method will not return custom role.

RemoveRoleAssignment(FilterRoleAssignmentsOptions, String)

Deletes a role assignments based on the used options.

RemoveRoleDefinition(FilterRoleDefinitionOptions)
RemoveRoleDefinition(Guid, String)

Deletes a role definition based on the id.

RemoveRoleDefinition(String, String)

Deletes a role definition based on the name.

UpdateRoleAssignment(PSRoleAssignment)

Updates a role assignment.

UpdateRoleDefinition(PSRoleDefinition)

Updates a role definiton.

ValidateScope(String, Boolean)

Applies to