October 2017
Intermediate to advanced
382 pages
11h 26m
English
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 ...
Read now
Unlock full access