Skip to Content
Mastering ArcGIS Enterprise Administration
book

Mastering ArcGIS Enterprise Administration

by Chad Cooper
October 2017
Intermediate to advanced
382 pages
11h 26m
English
Packt Publishing
Content preview from Mastering ArcGIS Enterprise Administration

PortalPy usage

Let's start out small here and list all the users in our organization:

    import portalpy 
    url = "https://www.masteringageadmin.com/portal" 
    portal = portalpy.Portal(url,  
                             "someadminuser",  
                             "strongpassword") 
 
    all_users = portal.get_org_users() 
    for au in all_users: 
        print au["username"]

Note here that in order to get a list of the users, we need to log in, which is easy enough; just pass in an administrative username and password. Executing this code gives us the following output:

    esri_boundaries 
    esri_demographics 
    esri_livingatlas 
    esri_nav 
    joe.schmoe 
    portaladmin 
    system_publisher 

Hmm, I recognize joe.schmoe and portaladmin, but what are those other accounts? They don't show up in my list of users in my organization. These are internal ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

Raymond Kenneth Doman

Publisher Resources

ISBN: 9781788297493Supplemental Content