getUser
FunctiongetUser(requestOptions?: string | IGetUserOptions): Promise<IUser>
Get information about a user. This method has proven so generically useful that you can also call ArcGISIdentityManager.getUser
.
import { getUser } from '@esri/arcgis-rest-portal';
//
getUser("jsmith")
.then(response)
// => { firstName: "John", lastName: "Smith",tags: ["GIS Analyst", "City of Redlands"] }
Parameters
Parameter | Type | Notes |
---|---|---|
request | string | IGetUserOptions | options to pass through in the request |
Returns
Promise<IUser>
A Promise that will resolve with metadata about the user