User Tenant Association integration API
User Tenant Associations
consortiumId required | string <uuid> (uuid) The ID of consortium |
userId | string <uuid> (uuid) The UUID of the user |
username | string The username of the user |
tenantId | string The ID of the tenant |
offset | integer [ 0 .. 2147483647 ] Default: 0 Skip over a number of elements by specifying an offset value for the query |
limit | integer [ 0 .. 2147483647 ] Default: 100 Limit the number of elements returned in the response |
{- "userTenants": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "username": "string",
- "tenantId": "string",
- "tenantName": "string",
- "isPrimary": true,
- "centralTenantId": "string",
- "consortiumId": "efa17688-681e-49fa-a2c1-b191cca6bafc",
- "email": "string",
- "mobilePhoneNumber": "string",
- "phoneNumber": "string"
}
], - "totalRecords": 0
}
User Tenant Associations
consortiumId required | string <uuid> (uuid) The ID of consortium |
user_tenant object
id | string <uuid> |
userId required | string <uuid> |
username | string |
tenantId required | string |
tenantName | string |
isPrimary | boolean |
centralTenantId | string |
consortiumId | string <uuid> |
string | |
mobilePhoneNumber | string |
phoneNumber | string |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "username": "string",
- "tenantId": "string",
- "tenantName": "string",
- "isPrimary": true,
- "centralTenantId": "string",
- "consortiumId": "efa17688-681e-49fa-a2c1-b191cca6bafc",
- "email": "string",
- "mobilePhoneNumber": "string",
- "phoneNumber": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "username": "string",
- "tenantId": "string",
- "tenantName": "string",
- "isPrimary": true,
- "centralTenantId": "string",
- "consortiumId": "efa17688-681e-49fa-a2c1-b191cca6bafc",
- "email": "string",
- "mobilePhoneNumber": "string",
- "phoneNumber": "string"
}
Delete User Tenant Associations for particular user id and tenant id
consortiumId required | string <uuid> (uuid) The ID of consortium |
userId | string <uuid> (uuid) The UUID of the user |
tenantId required | string The ID of the tenant |
{- "message": "string",
- "type": "string",
- "code": "string",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
consortiumId required | string <uuid> (uuid) The ID of consortium |
associationId required | string <uuid> (uuid) UUID of the user to get and associated tenants. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "username": "string",
- "tenantId": "string",
- "tenantName": "string",
- "isPrimary": true,
- "centralTenantId": "string",
- "consortiumId": "efa17688-681e-49fa-a2c1-b191cca6bafc",
- "email": "string",
- "mobilePhoneNumber": "string",
- "phoneNumber": "string"
}