Invite User in organization with custom claims
Invite User in organization
In order to invite/assign org user with custom claims, the recommended flow is to use below endpoints
curl --request POST \
--url https://dev-iam.razi.ai/v1/authorization/organizations/__USERID__/members \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"email": "john.doe@gmail.com",
"firstName": "John",
"lastName": "Doe",
"role": "custom:write",
"userId": "218910290"
}'