getMembers

Function

Fetches and returns members given a list of usernames

NOTE: AGO's user search endpoint is only available to authenticated users; however, since unauthenticated users should still be able to access public profiles, we support fetching members for both unauthenticated/authenticated users in this function

Parameters

Parameter Type Default Notes
usernames Required string[]

List of usernames to search for

requestOptions Required IHubRequestOptions

IHubRequestOptions

Available requestOptions

Property Type Notes
authentication Optional UserSession
hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Promise<IUser[]>

Function defined in sites/src/get-members.ts:27