listPendingInvitationsForPrincipal
@nmi-agro/fdm-source / fdm-core/src / listPendingInvitationsForPrincipal
Function: listPendingInvitationsForPrincipal()
listPendingInvitationsForPrincipal(
fdm,user_id):Promise<any[]>
Defined in: fdm-core/src/invitation.ts:519
Lists all pending (non-expired) invitations for a given user across all resources.
Returns invitations where the target matches the user's principal ID, email address, or an organization for which the user is an admin or owner.
Parameters
fdm
any
The FDM instance providing the connection to the database.
user_id
string
The ID of the user to retrieve invitations for.
Returns
Promise<any[]>
A Promise that resolves to an array of pending invitation records.