getUser

Function

import { getUser } from '@esri/arcgis-rest-users';
//
getUser("jsmith")
  .then(response)
// => { firstName: "John", lastName: "Smith",tags: ["GIS Analyst", "City of Redlands"] }

Get information about a user. This method has proven so generically useful that you can also call UserSession.getUser().

Parameters

Parameter Type Default Notes
requestOptions Optional string | IGetUserRequestOptions

options to pass through in the request

Returns

Promise<IUser> - A Promise that will resolve with metadata about the user


Function defined in packages/arcgis-rest-users/src/get.ts:37