Last updated
Was this helpful?
Last updated
Was this helpful?
The Provision user endpoints allow you to organize and grant permissions to your single sign-on users before the users log in to the Snyk platform. The endpoints are , , and .
Provisioned users do not need to accept invites. When provisioned users first log in to Snyk, they will have all their permissions. You can use the endpoint to add users to Organizations at scale before their first login.
The API does not support using service accounts as the inviting user or provisioned user.
The user being provisioned must not already exist in the Snyk system.
The inviting user must call the API using a personal token.
The Snyk Group to which the Organizations belong should have .
Both the inviting user and the provisioned user must log in using SSO.
The inviting user should have the permission Provision Users
to invoke these calls. All Group and Org Admins, by default, have this permission.
POST
https://api.snyk.io/v1/org/orgId/provision
Request model:
{
"email": "test@example.com",
"rolePublicId": "",
"role": "ADMIN"
}
Response model:
{
"email": "test@example.com",
"rolePublicId": "",
"role": "ADMIN",
"created": Date
}
GET
https://api.snyk.io/v1/org/orgId/provision
Response model:
[
....
{
"email": "test@example.com",
"rolePublicId": "",
"role": "ADMIN",
"created": Date
},
....
]
DELETE
https://api.snyk.io/v1/org/orgId/provision
Query parameters
email (string) - The email of the user.
Response model:
{
"ok": true
}
The following explains how to use the Provision user endpoints. For more information, see the API documentation for the endpoints: , , and .
You can use the endpoint to provision a user to the specified Organization with a role. When a user first logs into Snyk, the user is automatically assigned the permissions as defined in the role.
Enterprise plan users can define their own customized and can use therolePublicId
for assignment.
You can use either role
or rolePublicId
but not both in the same call.
The endpont returns pending provisioned users in the response.
Use the endpoint to remove a pending provision request.