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.

PropertyTypeDescription
autoForwardReceiverIdsstring[]A list of user IDs chosen for auto forwarding
autoForwardReceiversUser[]A list of User models who will be forwarded incoming messages
departmentstringYour department within this organization
organizationIdstringThe organization ID this profile is associated with
titlestringYour title within this organization
userIdstringYour user ID

Example

const profiles = await client.users.findMyProfilesForAllOrganizations();
Object.entries(profiles).forEach(([organizationId, profile]) =>
console.table(profile)
);