The roles can listed like so:
pulp role list --name-startswith "container." --name-contains "collaborator"
[
{
"pulp_href": "/pulp/api/v3/roles/0190e8dd-90a3-7033-8c32-cdc5e076c7f5/",
"pulp_created": "2024-07-25T07:49:12.996871Z",
"pulp_last_updated": "2024-07-25T07:49:34.155555Z",
"name": "container.containernamespace_collaborator",
"description": null,
"permissions": [
"container.namespace_add_containerdistribution",
"container.namespace_change_containerdistribution",
"container.namespace_change_containerpushrepository",
"container.namespace_delete_containerdistribution",
"container.namespace_modify_content_containerpushrepository",
"container.namespace_modify_content_containerrepository",
"container.namespace_pull_containerdistribution",
"container.namespace_push_containerdistribution",
"container.namespace_view_containerdistribution",
"container.namespace_view_containerpushrepository",
"container.view_containernamespace"
],
"locked": true
},
{
"pulp_href": "/pulp/api/v3/roles/0190e8dd-9045-7edb-b6ac-50713d57b841/",
"pulp_created": "2024-07-25T07:49:12.902106Z",
"pulp_last_updated": "2024-07-25T07:49:34.040704Z",
"name": "container.containerdistribution_collaborator",
"description": null,
"permissions": [
"container.pull_containerdistribution",
"container.push_containerdistribution",
"container.view_containerdistribution"
],
"locked": true
}
]
And, assigned like this:
pulp user role-assignment add --username "${USERNAME}" --role "${ROLE}" --object ""