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 ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Promise<IUser[]>

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