Select to view content in your preferred language

Not Able to Get All Roles (Default Built-In) in Portal Using ArcGIS Python API

252
0
09-11-2024 10:47 AM
BHK
by
Occasional Contributor

I am using this ArcGIS Python API to list all roles and their associated  Privileges with this Code but this is ONLY and ONLY listing custom Roles and not default roles like (Administrator, Publisher,Creator .. )

 

roles = gis.users.roles.all()
# Print roles
for role in roles:
    print(f"Role Name: {role['name']}, Role ID: {role['id']}, Role Description: {role['description']}")

Can you please let me know why this is happening? and how I can get all

Tags (1)
0 Kudos
0 Replies