listMemberships( )


Lists all group memberships of a site member.

The listMemberships() function returns a Promise that resolves to a list of up to 100 group memberships. Sorts by default to groupId in descending order.

Notes:

  • Only site admins can retrieve a site member's memberships. Site members can see a list of their memberships. However, if the suppressAuth option is set to true, all permissions are overwritten, and all site members (including non-group members) can see a list of a site member's memberships.
  • This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use null as a placeholder for any unspecified parameters. For example, to specify limit only, call listMemberships(memberId, paging, null). To specify supressAuth only, call listMemberships(memberId, null, options).
Method Declaration
Copy
Method Parameters
memberIdstringRequired

Site member ID.


pagingPagingMemberships

Paging options.


optionsOptions

Authorization options.

Returns
Return Type:Promise<ListMemberships>
Was this helpful?
Yes
No