resource-groups

Change user role

Changed on

Change the role of a user in a resource group. In a SCIM-managed resource group, pass resetToScimRole to undo a manual role change and restore the role mapped from the user's SCIM groups.

Use the inherit role to give the member the same role they have in the organization, following it when it changes.

Requires the org to have a Team plan or higher.

patch/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}
  • Auth: HTTP bearer

Path parameters

namestring required
resourceGroupIdstring required
usernamestring required

Request body

OR

Response

The updated resource group

idstring required

A hex string of 24 characters representing an ObjectId.

namestring required
descriptionstring nullable

Changes

    • warning

      added the new inherit enum value to the // response property for the response status

    • info

      added the new inherit enum value to the request property /

    • info

      added the required property // to the response with the status

    • info

      added the optional property // to the response with the status