users.findMyProfilesForAllOrganizations()
TigerConnect allows a user to be a part of multiple organizations and a user may have different profiles for each organization. As a result, we provide a method for obtaining all profiles that your user is associated with.
Definition
client.users.findMyProfilesForAllOrganizations():Promise<Object,Error>
Returns
When the call completes successfully, a promise will be returned with an object whose keys are organization IDs and the corresponding values being profile objects.
Each profile will contain the following properties.
Property | Type | Description |
---|---|---|
autoForwardReceiverIds | string[] | A list of user IDs chosen for auto forwarding |
autoForwardReceivers | User[] | A list of User models who will be forwarded incoming messages |
department | string | Your department within this organization |
organizationId | string | The organization ID this profile is associated with |
title | string | Your title within this organization |
userId | string | Your user ID |
Example
const profiles = await client.users.findMyProfilesForAllOrganizations();Object.entries(profiles).forEach(([organizationId, profile]) =>console.table(profile));