organizations.findAll()

Retrieve all Organizations that the current user belongs to.

Definition

client.organizations.findAll():Promise<Organization[],Error>

Returns

An error will be thrown if any of the arguments are invalid.

Otherwise, once the returned Promise is resolved, you will have access to an array of Organizations.

Examples

const organizations = await client.organizations.findAll();
console.log(
'found',
organizations.length,
'organizations:',
organizations
.map(function(organization) {
return organization.name;
})
.join(', ')
);