GetCurrentUser with ArcGIS Online
When using the GetCurrentUser activity with an ArcGIS Online account, it returns the user's display name rather than the login name.
To get the actual login name, I have to use the claims, as such:
claims.First(Function(c) c.Type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier").Value
which is a bit cumbersome.Am I overlooking something?
0
-
Hi Berend,
I would recommend posting to the Ideas section (https://support.geocortex.com/GSCIdeas?c=09a6000000008RsAAI&filter=1&categ=all&sub-nav=ideas&main-nav=essentials&page=1) to suggest that we add a new output argument for the AGOL account name, similar to the one that was added to retrieve the Windows account name.
Given the documentation for the property ("The name of the current user"), it looks like that is the current behaviour is intended. There is a response to a similar question here (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=90660000000TSI8AAO) that you might be interested in.
Hope that helps!
-Amanda0
Please sign in to leave a comment.
Comments
1 comment