Hi,
I need to somehow take a full accounting of our organization's ArcGIS Enterprise 10.8.1 Portal Content.
This may have been posted or suggested elsewhere, but I'm having some trouble finding any similar posts. Is there a way to generate a report or list of all items that includes the name, type, and size? Either through Portal or Portal Admin? I know that you can generate user reports in 10.9, at least: Work with usage reports—Portal for ArcGIS | Documentation for ArcGIS Enterprise And I'm aware of the 10.8.1 Usage Report, but it doesn't present the information I need.
I'm frustrated that the only real way to view an item's size is to manually select the item and navigate towards its Item Details. My user account has 598 items, and according to the 10.8.1 Usage Report or Organization has 1,504 Total Items stored. That's too many for me to go through one by one.
Any tips/tricks out there?
Thank you,
You could use the REST API to get a list of your items.
https://machine.domain.com/webadaptor/sharing/rest/content/users/portaladmin?f=pjson&
Then parse the JSON to create a report of the name of each item and it's size.
Thanks Davin,
I still have some trouble navigating the REST API, a bit of a newbie so forgive me if I'm heading the wrong direction with this. Even when I've signed in as the Portal Administrator/User Account that owns the items or have generated a token from the Server Administrator directory when trying to get to the user content json I want to take a look at, I still receive the following error message in my browser:
{"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}
I understand I may need to generate a different token per this topic: Solved: "You do not have permissions to access this resour... - Esri Community but I'm not really using the same program to access the REST API, I'm just trying to navigate to it through my browser on the Virtual Machine that's hosting our Enterprise deployment. So I'm not entirely sure which token to generate where and where to put it.
I've used the portal token before at one point during our latest Enterprise upgrade but its been a while and I've lost some of the context.
Hi Henry,
Can you navigate to https://machine.domain.com/webadaptor/sharing/rest/ and try to login using portaladmin?
Hi Henry,
Are you able to access it from the portal machine https://portal.domain.com:7443/arcgis/sharing/rest?
Unfortunately, even when going through the 7443 port I still only see the blank Portal.
I'm able to get a response for {"currentVersion": "8.2"} when I end the url https://portal.domain.com:7443/arcgis/sharing/rest with ?f=json.
Hi, I am in the same situation here (ArcGIS Enterprise 10.8), I am trying to get a list of all portal items. And my solution is to combine a tool from the preinstalled batch tools (tools\accountmanagement\ListUsers.bat) to get a list of all Portal users. In the second step I use the here mentioned REST API call to get all items for a specific user. At the beginning I got the same "permission denied" message as mentioned here above. But i managed to figure out that the call works, if I login as the portaladmin user, and post the following request:
https://machine-name:7443/arcgis/sharing/rest/content/users/user@windowsdomain?f=pjson&
Note: The REST Call is returning "permisson denied" message when I try anything different to the local machine name (in accessable via webadaptor or dns-name of the local machine). In our case the users are managed via Active directory, so it was necessary to user the username@domain format for the user.