RoleAssignment.DefinitionStages.WithAssignee Interface

public interface WithAssignee

The stage of role assignment definition allowing specifying the assignee information.

Method Summary

Modifier and Type Method and Description
RoleAssignment.DefinitionStages.WithRole forGroup(ActiveDirectoryGroup activeDirectoryGroup)

Specifies the assignee of the role assignment to be a group.

RoleAssignment.DefinitionStages.WithRole forObjectId(String objectId)

Specifies the assignee of the role assignment.

RoleAssignment.DefinitionStages.WithRole forServicePrincipal(ServicePrincipal servicePrincipal)

Specifies the assignee of the role assignment to be a service principal.

RoleAssignment.DefinitionStages.WithRole forServicePrincipal(String servicePrincipalName)

Specifies the assignee of the role assignment to be a service principal.

RoleAssignment.DefinitionStages.WithRole forUser(ActiveDirectoryUser user)

Specifies the assignee of the role assignment to be a user.

RoleAssignment.DefinitionStages.WithRole forUser(String name)

Specifies the assignee of the role assignment to be a user.

Method Details

forGroup

public WithRole forGroup(ActiveDirectoryGroup activeDirectoryGroup)

Specifies the assignee of the role assignment to be a group.

Parameters:

activeDirectoryGroup - the user group

Returns:

the next stage in role assignment definition

forObjectId

public WithRole forObjectId(String objectId)

Specifies the assignee of the role assignment.

Parameters:

objectId - the object ID of an Active Directory identity

Returns:

the next stage in role assignment definition

forServicePrincipal

public WithRole forServicePrincipal(ServicePrincipal servicePrincipal)

Specifies the assignee of the role assignment to be a service principal.

Parameters:

servicePrincipal - the service principal object

Returns:

the next stage in role assignment definition

forServicePrincipal

public WithRole forServicePrincipal(String servicePrincipalName)

Specifies the assignee of the role assignment to be a service principal.

Parameters:

servicePrincipalName - the service principal name

Returns:

the next stage in role assignment definition

forUser

public WithRole forUser(ActiveDirectoryUser user)

Specifies the assignee of the role assignment to be a user.

Parameters:

user - the user object

Returns:

the next stage in role assignment definition

forUser

public WithRole forUser(String name)

Specifies the assignee of the role assignment to be a user.

Parameters:

name - the user's user principal name, full display name, or email address

Returns:

the next stage in role assignment definition

Applies to