Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Organization → Check that a user belongs to an organization and has the specified role.

AI-generated

Summary

Verify whether a specified user belongs to a particular organization identified by Org ID and check if they hold a specified role within that organization.

Inputs

  • Org ID (required) — The unique identifier of the organization to check membership in.
  • User ID (required) — The unique identifier of the user whose membership and role are being verified.
  • Options — Optional settings such as returning the raw API response.

Output shape

a single response object from the API call

The output returns either the full raw response JSON if 'Raw Response' option is enabled, or the processed result of the membership and role check. In case of multiple results, they are split into individual items; otherwise, a single JSON object is returned.

Examples

Example 1: Check if user with ID 'user123' is a member of organization 'org456' with a specified role

Provide 'orgId' as 'org456', 'userId' as 'user123', and optionally set 'Raw Response' in Options to true to receive full API data.

Discussion