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 |
---|---|
Role |
forGroup(ActiveDirectoryGroup activeDirectoryGroup)
Specifies the assignee of the role assignment to be a group. |
Role |
forObjectId(String objectId)
Specifies the assignee of the role assignment. |
Role |
forServicePrincipal(ServicePrincipal servicePrincipal)
Specifies the assignee of the role assignment to be a service principal. |
Role |
forServicePrincipal(String servicePrincipalName)
Specifies the assignee of the role assignment to be a service principal. |
Role |
forUser(ActiveDirectoryUser user)
Specifies the assignee of the role assignment to be a user. |
Role |
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:
Returns:
forObjectId
public WithRole forObjectId(String objectId)
Specifies the assignee of the role assignment.
Parameters:
Returns:
forServicePrincipal
public WithRole forServicePrincipal(ServicePrincipal servicePrincipal)
Specifies the assignee of the role assignment to be a service principal.
Parameters:
Returns:
forServicePrincipal
public WithRole forServicePrincipal(String servicePrincipalName)
Specifies the assignee of the role assignment to be a service principal.
Parameters:
Returns:
forUser
public WithRole forUser(ActiveDirectoryUser user)
Specifies the assignee of the role assignment to be a user.
Parameters:
Returns:
forUser
public WithRole forUser(String name)
Specifies the assignee of the role assignment to be a user.
Parameters:
Returns:
Applies to
Azure SDK for Java