Get User Info
I am looking at Workflow 5 and trying to get user permissions from AGOL using the Get User Info activity
I can pipe the outputs of username and email and display them OK, but when using $userInfo1.roles I’m not getting anything back, and running through a For Each loop I’m getting a count of 0
Does this activity work for AGOL ?
0
-
@Chris Wright? Is this user a member of your organization? When you hit the user endpoint (https://developers.arcgis.com/rest/users-groups-and-items/user.htm) there are two differing responses given:
Response from user within your org:
{ "cultureFormat": "us", "disabled": false, "storageQuota": 2199023255552, "id": "", "storageUsage": 425122080, "assignedCredits": 500.0, "culture": "en-US", "favGroupId": "", "privileges": [], "created": 1372792532000, "access": "public", "role": "org_admin", "provider": "arcgis", "units": "english", "userLicenseTypeId": "creatorUT", "mfaEnabled": true, "email": "", "username": "tom.neer", "description": "", "tags": [], "groups": [], "fullName": "", "idpUsername": null, "firstName": "Tom", "userType": "arcgisonly", "lastName": "Neer", "region": "US", "level": "2", "modified": 1548455245000, "thumbnail": "profile_450x450.png", "availableCredits": 500.0, "orgId": "", "preferredView": null, "lastLogin": 1549901080000 }vs external org user
{ "username": "tomneer", "firstName": "Tom", "created": 1315937999000, "lastName": "Neer", "modified": 1544826900000, "provider": "arcgis", "fullName": "Tom Neer", "id": "" }You will notice there is a significant difference between what is returned.
Best,
-Tom
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar