This function lists all users in a portal.
arc_portal_users(
id = arc_portal_self(token)[["id"]],
sort_field = NULL,
provider = NULL,
sort_order = NULL,
role = NULL,
fullname = NULL,
username = NULL,
firstname = NULL,
lastname = NULL,
filter_intersection = NULL,
page_size = 50,
max_pages = Inf,
.progress = TRUE,
host = arc_host(),
token = arc_token()
)a data.frame of users.
the portal ID. By default it fetches the id from arc_portal_self().
optional field to sort by. It must be one of "username", "fullname", "created", "lastlogin", "mfaenabled", "level", "role".
optional filter users based on their identity provider. Must be one of "arcgis", "enterprise", "facebook", "google", "apple", or "github".
optional order to sort by. It must be one of "asc" or "desc".
optional role to filter down to. It must be one of "org_admin", "org_publisher", "org_user".
optional string of the user's fullanme to search for.
optional string of the user's user name to search for.
optional string of the user's first name to search for.
optional string of the user's last name to search for.
optional boolean value. If TRUE mutliple filters are treated as an "and" condition. If FALSE, treated as an "or".
a scalar integer between 1 and 100 indicating the number of responses per page.
the maximum number of pages to fetch. By default fetches all pages.
default TRUE. Whether to display a progress bar for requests.
default "https://www.arcgis.com". The host of your ArcGIS Portal.
an object of class httr2_token as generated by auth_code()
or related function
Other portal:
arc_portal_resources(),
arc_portal_urls(),
self
if (FALSE) {
set_arc_token(auth_user())
arc_portal_users()
}
Run the code above in your browser using DataLab