getUserGroupsFromQuery

Function

Given a query and a user, return an object with the set of groups that are in the Query, and which the user is a member of, split by membership type. NOTE: This excludes viewOnly groups the user is just a member of.

Parameters

Parameter Type Default Notes
query Required IQuery
user Required IUser

Returns

Property Type Notes
admin string[]

Groups where the user is an admin, allowing them to add / remove members, as well as share content they do not own

member string[]

Groups where the user is a member. ViewOnly groups will not be included in this list.

owner string[]

Groups where the user is the owner, allowing them to add / remove members, as well as share content they do not own


Function defined in common/src/search/_internal/getUserGroupsFromQuery.ts:15