GET/api/resource-server/organizations/{organization_id}/members/{uid}/rolePublic

Look up a user's organization role

Tells a resource server which role (owner, member, ...) a user holds in an organization, or null when they are not a member or do not exist. Only the API server that the organization owns may ask about it: the calling API server names itself in the X-Api-Server-Id header and proves it with a single-use JWKS access assertion signed with its JWKS access private key. Resource servers built on @schemavaults/auth-server-sdk call this through isUserInOrganization().

operationId get_api_resource_server_organizations_organization_id_members_uid_roleResource servers

Authentication & permissionsPublic

Anyone — no credentials required

Accepted credentials
None required
Notes
Requires Authorization: Bearer <JWKS access assertion> (the schemavaults-jwks-access-assertion scheme) signed by the API server named in X-Api-Server-Id; the handler verifies it after the path and header validation, so a malformed request is refused with 400 before the credential is examined, a missing or invalid assertion with 401. The API server must belong to organization_id (403 otherwise).

Path parameters

NameTypeDescription
organization_id*string

Organization the API server belongs to

uid*string (uuid)

User id to look up

Request headers

NameTypeDescription
x-api-server-id*string

Id of the calling API server; the assertion must be signed with its JWKS access key

Responses

application/json
OrganizationMemberRoleResponse
PropertyTypeDescription
success*true
data*object
organization_id*string

minLength: 4maxLength: 32pattern: ^[a-z][a-z0-9_-]+$

uid*string (uuid)
role*string | null | null

The user's role in the organization, or null when not a member (or no such user)

JSONExample
"success"true
"data"
"organization_id""string"
"uid""123e4567-e89b-12d3-a456-426614174000"
"role""member"

Example request

bashcurl
curl -X GET 'https://auth.schemavaults.com/api/resource-server/organizations/<organization_id>/members/<uid>/role' \
  -H 'x-api-server-id: <x-api-server-id>'