DeleteUser
/api/v1/users/{user}Delete a user along with their access. The user is soft deleted so that they can still be referred to in the audit log.
Example request
Section titled “Example request”curl -X DELETE \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/users/{user}"Set OBLIQUE_API_KEY to your API key.
curl -X DELETE \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/users/{user}"Set OBLIQUE_API_KEY to your API key.
Path parameters
Section titled “Path parameters”namestringrequiredName of the user of the format
users/{id}.
Response
Section titled “Response”200UserA user represents a human user in the directory.
namestringAssigned by Oblique. Format:
users/{id}uristringread-onlyLink to the user’s page in the Oblique app, for example “https://us.oblique.security/people/abc”.
createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlydeleteTimestring (date-time)read-onlyUsers can only be soft-deleted to preserve logs and history. If this field is present, the user has been deleted and won’t be returned in lists, but can still be fetched by name.
mergedUserstringread-onlyThe user this user was merged into. Set when the user was deleted by a merge, and names the user that remains and now holds this user’s email addresses.
Format:
users/{user}displayNamestringrequiredPrimary display name of the user.
emailstringrequiredPrimary email of the user. Required for active users.
secondaryEmailsstring[]Additional emails of the user. These are in addition to the primary email.
titlestringSelf reported role. “VP of Engineering”, “Senior Frontend Engineer”, “Engineering Director, Frontend”.
managerstringOptional manager of the user.
Format:
users/{user}pictureUristringURI for the user’s profile picture. This can either be an
https://scheme, or an absolute path (/imgs/foo.png).directReportCountinteger (int32)read-onlyNumber of direct reports to this user.
totalReportCountinteger (int32)read-onlyNumber of total reports to this user.
lastLoginTimestring (date-time)read-onlyThe time the user last logged in. Not set if the user has never logged in.
loginCreatedbooleanread-onlyWhether the user was created by signing in, rather than by an integration.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Missing or invalid API key |
403 | Not allowed for this API key |
404 | Not found |
429 | Too many requests |
500 | Internal server error |