Permit use of wildcard in the scope in role creation

Hello

I am reaching out to you because I have a case that I don’t know how to handle it.

I create several roles that I attach to teams or OIDC groups. In these roles, I add scopes to give access to given entities.

But I want to have some roles to be universal with, for example, a full ReadOnly role.
A role that have the READ permission for all current and future entities.

For now, the only possibility is to add READ permission for each entity individually, which is really not that handy when you have a lot of entities and we have to update the role with each new created entity.

So, my question is : how can I handle that ? And is it possible to add the ability to enter a wildcard in the scope field like so :

Or an (ALL) option, no matter the format.

Thank you for your help on this !

Hello @StephaneB. At the moment, it is not possible to set permissions for all entities. However, we understand that this functionality may be important for your use case. We will discuss it internally and consider including it in one of our future updates.

While wildcard scopes aren’t available yet, you could reduce manual work by automating the role maintenance: whenever a new entity is created, enumerate entity scopes and add the missing READ entries to the ReadOnly role. Whether that’s practical depends on whether your version exposes role/scope management via API or metadata, so it’s worth confirming that with the AtroCore team. It isn’t a true wildcard, but it can keep the role current without editing each new entity by hand.

Hi Daniel

Thanks for your answer on this topic !

Did you already test this approach yourself ?
When you said “whenever a new entity is created”, do you find any automatic trigger or webhook that can trigger a script or an external api call ?

Because yes, if I can trigger a call when a new entity is created, I can search the api for the atrocore’s api calls to automate the process.

Thanks for your help