Retrieves the names of users and their permissions roles for a given project.

Input Paraemter

Type

Default

Description

project_id

str

None

The unique identifier for the project.

PROJECT_ID = 'example_project'

client.list_project_roles(
    project_id=PROJECT_ID
)

Return Type

Description

dict

A dictionary of users and their roles for the specified project.

{
    'roles': [
        {
            'user': {
                'email': '[email protected]'
            },
            'team': None,
            'role': {
                'name': 'OWNER'
            }
        },
        {
            'user': {
                'email': '[email protected]'
            },
            'team': None,
            'role': {
                'name': 'READ'
            }
        }
    ]
}