:wave: hey folks, quick question: I'm looking to i...
# ask-a-descoper
d
đź‘‹ hey folks, quick question: I'm looking to insert a step into our login flows where we check if a user has a permission in a tenant. In the list of fields I can create conditionals for, I don't see a field to use for checking tenant permissions. I see a
user.tenant.roles
field, but nothing for permissions. Am I missing something?
image.png
so there's a
user.project.permissions
and
user.project.roles
, but it seems the tenant permissions field is missing
n
Hi David, We don't currently have a call to reference tenant-level permissions from a Condition, but you can suggest this as a Feature Request here: https://ideas.descope.works/
a
To clarify, does
user.project.permissions
include permissions a user has in a specific tenant, or is it only for permissions that aren't associated with a tenant? For example, would this user's
project.permissions
include the permissions from the Viewer role, or only permissions from the Tenant Admin role?
image.png
n
user.project.permissions
is project-level, not tenant-specific. It doesn’t allow you to ask, “Does the user have permission X in tenant Y?” Therefore, it wouldn’t reliably reflect permissions granted by a tenant role, such as Viewer for a specific tenant, and it’s not limited to something like Tenant Admin.
a
Thanks. Is there any way to check in a flow if a user has a specific role or permission in any tenant in the project, without specifying the tenant?