Interface RoleAssignment.DefinitionStages.WithAssignee

All Known Subinterfaces:
RoleAssignment.Definition, RoleAssignment.DefinitionStages.Blank
Enclosing interface:
RoleAssignment.DefinitionStages

public static interface RoleAssignment.DefinitionStages.WithAssignee
The stage of role assignment definition allowing specifying the assignee information.
  • Method Details

    • forObjectId

      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
    • forUser

      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

      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
    • forGroup

      Specifies the assignee of the role assignment to be a group.
      Parameters:
      activeDirectoryGroup - the user group
      Returns:
      the next stage in role assignment definition
    • forServicePrincipal

      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

      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