Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

User → Add a user to an organization.

AI-generated

Summary

Add a user to a specified organization by sending a PUT request with the user's details in the request body.

Inputs

  • orgId (required) — The ID of the organization to which the user will be added.
  • body (required) — A JSON object containing user details such as email, username (required), name, type, idpId, and roleId (required).
  • options.rawResponse — Whether to return the full raw response data instead of splitting arrays into individual items.

Output shape

a single JSON object representing the response from the addition of the user to the organization

The response shape depends on the API response; if 'Raw Response' option is enabled, the full response is returned; otherwise, it is returned as-is. Errors are returned as JSON objects with an error message.

Examples

Example 1: Add a user by specifying organization ID and user details

Provide 'orgId' as a string and 'body' as a valid JSON with required fields 'username' and 'roleId' to add the user to that organization.

Discussion