It would be useful to have a method/primitive that expresses an ArcGIS User. This feels similar to the IPortal
and getSelf()
method in arcgis-rest-request
.
Note that an IPortal
returned by request.getSelf()
includes a user
property, but this object doesn’t appear to be a fully-qualified User per the REST API spec.
User spec https://developers.arcgis.com/rest/users-groups-and-items/user.htm
The following works fine today:
import { request } from '@esri/arcgis-rest-request';
// session === UserSession();
// use request module to fetch user profile
request(`${session.portal}/community/users/${session.username}`, {
authentication: session
})
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
IUser Interface (Microsoft.AspNet.Identity)
The unique identifier for the user.(Inherited from IUser<TKey>.) System_CAPS_pubproperty, UserName. The unique name for the user.(Inherited from ...
Read more >What is IUSER in IIS? - Windows Server - Bleeping Computer
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using ...
Read more >IUser - SAP Help Portal
This interface provides read-access to the user's attributes, and offers basic support for authorization checking. Implementations of this interface must make ...
Read more >AWS CDK - interface IUser
The principal to grant permissions to. node. Type: ConstructNode. The construct tree node for this construct. policyFragment. Type ...
Read more >IUser Properties - IBM
For IUser and IGroup classes, the Id property takes the value of the Security Identifier (SID) rather than the 128-bit GUID. The string...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tomwayson and i both ultimately got our way.
v1.1.2
included this:in
v1.4.0
we also introduced support forI feel like we need a new package (@esri/arcgis-rest-users) to manage users. It would have
getUser()
and other functions for all the operations under the “Community - User” left nav here.IUser
itself will probably end up in common types and shared amongst the auth and groups packages.