RoleAssignment.DefinitionStages.WithAssignee Interface

public static interface RoleAssignment.DefinitionStages.WithAssignee

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

Method Summary

Modifier and Type Method and Description
abstract WithRole forGroup(ActiveDirectoryGroup activeDirectoryGroup)

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

abstract WithRole forObjectId(String objectId)

Specifies the assignee of the role assignment.

abstract WithRole forServicePrincipal(ServicePrincipal servicePrincipal)

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

abstract WithRole forServicePrincipal(String servicePrincipalName)

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

abstract WithRole forUser(ActiveDirectoryUser user)

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

abstract WithRole forUser(String name)

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

Method Details

forGroup

public abstract RoleAssignment.DefinitionStages.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 abstract RoleAssignment.DefinitionStages.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 abstract RoleAssignment.DefinitionStages.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 abstract RoleAssignment.DefinitionStages.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 abstract RoleAssignment.DefinitionStages.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 abstract RoleAssignment.DefinitionStages.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