Interface RoleAssignment.DefinitionStages.WithAssignee

    • Method Detail

      • forObjectId

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

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