Hey Team, I am using Infisical v0.146.0-postgres....
# infisical-help
s
Hey Team, I am using Infisical v0.146.0-postgres. I am trying to create custom role through API using the token provided when provisioning the instance with the bootstrap method but I got Forbidden access to the POST
/api/v1/organization/{{ infisical_org_id }}/roles
endpoint. Is it a bug ?
p
Hi Steven, I’ve checked this and it’s not a bug. When you bootstrap the instance you get a machine identity token but the endpoint you’re using requires a user access token.
s
ok, thanks for your answer. Is there a way to programmatically manage organization roles ?
p
You can use the infisical user login command and then use the token to call the above endpoint
s
thank you for your quick answer !