Skip to main content

getOrganizationsForUser

@svenvw/fdm-source


@svenvw/fdm-source / fdm-core/src / getOrganizationsForUser

Function: getOrganizationsForUser()

getOrganizationsForUser(fdm, user_id): Promise<object[]>

Defined in: fdm-core/src/organization.ts:231

Retrieves a list of organizations that a user is a part of.

Parameters

fdm

any

The FDM instance providing the connection to the database.

user_id

string

The ID of the user for whom to retrieve organizations.

Returns

Promise<object[]>

A promise that resolves with an array of organization details.

Throws

Throws an error if any database operation fails.