Internal
Get a user in an organization (internal)
Returns the user resolved from organization_id (account owner), (organization_id, email), or (organization_id, user_id) (org-scoped lookup). Restricted to trusted internal origins.
get/v1/users/in_organization
Request
- Base URLhttps://identity-api.paymongo.com
- URLhttps://identity-api.paymongo.com/v1/users/in_organization
- AuthAPI key in header X-Internal-Api-Key
Query parameters
organization_idstring required
Organization id
emailstring
User email — when supplied, the user must be a member of organization_id (mutually exclusive with user_id)
user_idstring
User id — when supplied, the user must be a member of organization_id (mutually exclusive with email)
Response
OK
Example response
{
"data": {
"attributes": {
"accelerator_program_code": "sme",
"contact_number": "+639499031802",
"core_organization_id": "org_oW2EhMo1KgYDopC4bC5iKs3N",
"department": "owner_management",
"email": "jam@paymongo.com",
"email_confirmed": true,
"first_name": "Juan",
"last_name": "Cruz",
"login_mfa": true,
"login_mfa_disabled_at": 1735689600,
"login_notification": true,
"roles": [
"account_owner"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.