curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/bloodhound-users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"email_address": "jsmith@example.com",
"principal": "<string>",
"roles": [
123
],
"saml_provider_id": "<string>",
"sso_provider_id": {
"int32": 123,
"valid": true
},
"is_disabled": true,
"secret": "<string>",
"needs_password_reset": true
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"saml_provider_id": {
"int32": 123,
"valid": true
},
"sso_provider_id": {
"int32": 123,
"valid": true
},
"AuthSecret": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"digest_method": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"totp_activated": true
},
"roles": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"name": "<string>",
"description": "<string>",
"permissions": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"authority": "<string>",
"name": "<string>"
}
]
}
],
"first_name": {
"string": "<string>",
"valid": true
},
"last_name": {
"string": "<string>",
"valid": true
},
"email_address": {
"string": "<string>",
"valid": true
},
"principal_name": "<string>",
"last_login": "2023-11-07T05:31:56Z",
"is_disabled": true,
"eula_accepted": true
}
}Create a new BloodHound user.
curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/bloodhound-users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"email_address": "jsmith@example.com",
"principal": "<string>",
"roles": [
123
],
"saml_provider_id": "<string>",
"sso_provider_id": {
"int32": 123,
"valid": true
},
"is_disabled": true,
"secret": "<string>",
"needs_password_reset": true
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"saml_provider_id": {
"int32": 123,
"valid": true
},
"sso_provider_id": {
"int32": 123,
"valid": true
},
"AuthSecret": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"digest_method": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"totp_activated": true
},
"roles": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"name": "<string>",
"description": "<string>",
"permissions": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"authority": "<string>",
"name": "<string>"
}
]
}
],
"first_name": {
"string": "<string>",
"valid": true
},
"last_name": {
"string": "<string>",
"valid": true
},
"email_address": {
"string": "<string>",
"valid": true
},
"principal_name": "<string>",
"last_login": "2023-11-07T05:31:56Z",
"is_disabled": true,
"eula_accepted": true
}
}Authorization: Bearer $JWT_TOKEN
Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.
The request body for creating a user
Deprecated. Use sso_provider_id instead.
ID of the SSO provider for this user
Show child attributes
OK
Show child attributes