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
With |
forGroup(ActiveDirectoryGroup activeDirectoryGroup)
Specifies the assignee of the role assignment to be a group. |
abstract
With |
forObjectId(String objectId)
Specifies the assignee of the role assignment. |
abstract
With |
forServicePrincipal(ServicePrincipal servicePrincipal)
Specifies the assignee of the role assignment to be a service principal. |
abstract
With |
forServicePrincipal(String servicePrincipalName)
Specifies the assignee of the role assignment to be a service principal. |
abstract
With |
forUser(ActiveDirectoryUser user)
Specifies the assignee of the role assignment to be a user. |
abstract
With |
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:
Returns:
forObjectId
public abstract RoleAssignment.DefinitionStages.WithRole forObjectId(String objectId)
Specifies the assignee of the role assignment.
Parameters:
Returns:
forServicePrincipal
public abstract RoleAssignment.DefinitionStages.WithRole forServicePrincipal(ServicePrincipal servicePrincipal)
Specifies the assignee of the role assignment to be a service principal.
Parameters:
Returns:
forServicePrincipal
public abstract RoleAssignment.DefinitionStages.WithRole forServicePrincipal(String servicePrincipalName)
Specifies the assignee of the role assignment to be a service principal.
Parameters:
Returns:
forUser
public abstract RoleAssignment.DefinitionStages.WithRole forUser(ActiveDirectoryUser user)
Specifies the assignee of the role assignment to be a user.
Parameters:
Returns:
forUser
public abstract RoleAssignment.DefinitionStages.WithRole forUser(String name)
Specifies the assignee of the role assignment to be a user.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for