client.list_project_roles

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

Input ParaemterTypeDefaultDescription
project_idstrNoneThe unique identifier for the project.
PROJECT_ID = 'example_project'

client.list_project_roles(
    project_id=PROJECT_ID
)
Return TypeDescription
dictA 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'
            }
        }
    ]
}