Hi,
Is it possible to read all content of Esri Portal not just one group or a user?
I tried to use * but it does not work
Hi,
Is it possible to read all content of Esri Portal not just one group or a user?
I tried to use * but it does not work
Not sure if this is possible using the ArcGISOnlineConnector but we do this using HttpCallers so I think not. Steps are:
Hi,
I am sorry but I do not follow. Do I still have to know the @Value(user_name) and @Value(folder_id) for all users and items I would like to check? I am using authentication so I do not have to generate token I think
Yes, it depends on how how you work, we only have one user we use to publish GIS data, but if you have multiple users steps would be: Get all users, Get all folders and items for each user, Get all items in each folder of each user.
Thank you for the reply! Unfortunately, this approach won't work for me because the number of users is dynamic.
Thank you for the reply! Unfortunately, this approach won't work for me because the number of users is dynamic.
ChatGPT suggests something like
https://<portal-url>/sharing/rest/community/users
to get all users.
I looked into something we use to do usermanagement on our portal with FME server. In this case we use
https://<portal-url>/sharing/rest/portals/<portalId>/users
but to use this you will need an Admin account.
An alternative to get all users is to use User Search
https://<portal-url>/sharing/rest/community/users
as this can be done with a regular user.
The way I develop these things is to do the action I want in portal while having developer window (F12) open. I then see which requests are made to get the results and reproduce these with HttpCallers.
Be aware that the account you are using to list the items, must have permission to see the other users items. Not tested but I think an admin account can do this, but not sure.
Because of this (need to be shared with to seee) we use one account to publicate stuff, as ESRI does on AGOL.