Select to view content in your preferred language

Portalpy script which dumps all portal content

780
2
10-10-2018 12:23 PM
LakshmananVenkatesan
Frequent Contributor

Hi All,

I am looking for enhanced portalpy script which can used to fetch all my portal contents . The requirement is I would like to summarize - how many users? Ids, how many user have contents, what type of content, urls?, etc.

I tried using portal py - but search returns limited set of records. I tried simulating query parameters as in REST calls (using developer tools) in my python code, but still results are not consistent.

I am not sure if there is way to get all portal items in excel to do a basic analysis. Basically whatever I can see in activitydashboard/usage page, I am in need of those in excel sheet.

Let me know if there is any pointers

Tags (2)
0 Kudos
2 Replies
JonathanQuinn
Esri Notable Contributor

I would take some of the concepts from the clone portal users and groups sample and apply them to your script. The main idea is that, (as an administrator), you'd loop through the list of users within your Portal, create the URL to the users content, make a request to get all of the users content and content within folders, and then loop through the content and dump it out.

0 Kudos
LakshmananVenkatesan
Frequent Contributor

Hi Quinn - Thanks for the pointers, let me try and update you.

0 Kudos