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
Piyush Gupta
11/26/2025, 8:45 AM
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
Steven JAMAN
11/26/2025, 8:54 AM
ok, thanks for your answer.
Is there a way to programmatically manage organization roles ?
p
Piyush Gupta
11/26/2025, 9:27 AM
You can use the infisical user login command and then use the token to call the above endpoint