Another question - I'm witnessing a weird behavior...
# ask-a-descoper
c
Another question - I'm witnessing a weird behavior when assigning roles to users - they are not persisted correctly it seems. Whenever I assign a role with no tenant, tenant-specific role assignments are not persisted on the user correctly... Happy to DM a video that demonstrates the bug. Steps to reproduce: 1. Have a user with no roles at all 2. Edit the user and add two role assignments - one for each tenant, e.g.
Tenant1
->`Role1` and
Tenant2
->`Role2` 3. Save the user 4. All is OK 5. Edit the user again 6. Add a role, this time with no tenant, e.g. (no-tenant) ->
Role3
7. Save the user Expected result: 1. User has: a.
Tenant1
->`Role1` b.
Tenant2
->`Role2` c. (no-tenants)->`Role3` Actual result: 1. User has: a.
Tenant1
,
Tenant2
-> (no-roles) Am I missing something? Btw my rational for a user having both tenant-specific roles as well as global roles is to allow a user to perform app-global operations, as well as [one-or-more] tenant-specific operations.
a
Hi @careful-crowd-22541 Thanks for the detailed message. Yes we aware of the issue, we do not allow that because we do not want to mix b2b and b2c use cases. But I see your use case, and we will think on a fix and let you know.
c
Great, thanks @ancient-motorcycle-2291, much appreciated. Is there an alternative solution that could fill as a short-stop until then?
a
Yes, you can use global tenant instead of using the global project
c
Hmm, what's the global tenant?
a
I mean to create a tenant which will be treated as global
💯 1