getUser
import { getUser } from '@esri/arcgis-rest-portal';
//
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 | IGetUserOptions |
options to pass through in the request |
Returns
A Promise that will resolve with metadata about the user
Property | Type | Notes |
---|---|---|
Optional | string | |
Optional | number | |
Optional | number | |
Optional | string | |
Optional | number | |
Optional | string | |
Optional | string | |
Optional | boolean | |
Optional | string | |
Optional | string | |
Optional | string | |
Optional | string | |
Optional | IGroup[] | IGroup | |
Optional | string | |
Optional | number | |
Optional | string | |
Optional | string | |
Optional | boolean | |
Optional | number | |
Optional | string | |
Optional | any | |
Optional | string[] | string | |
Optional | "arcgis" | "enterprise" | "facebook" | "google" | |
Optional | string | |
Optional | "org_admin" | "org_publisher" | "org_user" | |
Optional | string | |
Optional | number | |
Optional | number | |
Optional | string[] | string | |
Optional | string | |
Optional | string | |
Optional | string |
Function defined in packages/arcgis-rest-portal/src/users/get-user.ts:35