from latitudesh_python_sdk import Latitudeshimport oswith Latitudesh( bearer=os.getenv("LATITUDESH_BEARER", ""),) as latitudesh: res = latitudesh.roles.list(page_size=20, page_number=1) while res is not None: # Handle items res = res.next()
Returns a list of all roles that can be assigned to users
GET
/
roles
Python (SDK)
Copy
from latitudesh_python_sdk import Latitudeshimport oswith Latitudesh( bearer=os.getenv("LATITUDESH_BEARER", ""),) as latitudesh: res = latitudesh.roles.list(page_size=20, page_number=1) while res is not None: # Handle items res = res.next()