Is there a management api, or something in the SDK...
# ask-a-descoper
b
Is there a management api, or something in the SDK that let's me create roles in a
tenant's
authorization settings?
m
have you tried using https://docs.descope.com/api/management/roles/create-role with tenant id ?
b
No, I was looking through the management documentation and not the api documentation. I assume if I lave the tenant id empty that creates a project level role? Or is that a different API?
And second, is there any way for me to specify the role id, or is that always going to be defined by Descope?
d
You have it also in all of the sdks, for example from node-sdk readme: https://github.com/descope/node-sdk?tab=readme-ov-file#manage-roles
There is not way to provide the role id, only names are exposed.