Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

User → Assign a role to a user.

AI-generated

Summary

Assign a specified role to a user by providing the user ID and role ID.

Inputs

  • roleId (required) — The ID of the role to assign to the user.
  • userId (required) — The ID of the user to whom the role will be assigned.
  • options.rawResponse — Whether to return the full response data instead of splitting arrays into individual items.

Output shape

the JSON response from the API confirming the role assignment, typically an object representing the updated user-role association or status.

If 'Raw Response' option is set to true, the full raw response data is returned. Otherwise, the output is processed and split appropriately if the response is an array.

Discussion