User Attribute Types REST API
The User/AttributeType endpoint allows creating and managing user attribute types.
The API version supported by ActivID Appliance 8.7 is
Previous versions of the API are also supported with the corresponding functionality.
Method Details
HTTPS Method | Entity Action | Request URI | Description |
---|---|---|---|
GET |
Read |
/configuration/{tenant}/v2/User/AttributeType |
Retrieve the list of all user attribute types |
GET |
Read |
/configuration/{tenant}/v2/User/AttributeType/{id} |
Retrieve a user attribute type |
POST |
Create |
/configuration/{tenant}/v2/User/AttributeType |
Create a user attribute type |
PUT |
Replace |
/configuration/{tenant}/v2/User/AttributeType/{id} |
Replace a user attribute type |
DELETE |
Delete |
/configuration/{tenant}/v2/User/AttributeType/{id} |
Delete a user attribute type |
Required Permissions
Function | Required Permissions |
---|---|
GET ALL |
|
GET |
|
CREATE |
|
REPLACE |
|
DELETE |
|
Get All User Attribute Types
GET /User/AttributeType
Sample Response
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 23,
"resources": [
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "DOB",
"meta": {
"resourceType": "UserAttributeType",
"created": "2023-11-28T08:59:40.702Z",
"location": "https://[base-server-url]/configuration/tenant/v2/User/AttributeType/DOB",
"version": 1
},
"name": "Date of Birth",
"notes": "Notes",
"encrypted": true,
"predefined": true
},
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "CUSTATT1",
"meta":
{
"resourceType": "UserAttributeType",
"created": "2023-03-18T09:14:34.702Z",
"location": "https://[base-server-url]/configuration/tenant/v2/User/AttributeType/CUSTATT1",
"version": "1"
},
"name": "Custom Attribute 1",
"notes": "Custom Attribute 1 notes"
"encrypted": true,
"predefined": false
},
<--- truncated output --->
]
}
Get User Attribute Type
GET /User/AttributeType/{id}
Sample Response
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "DOB",
"meta":
{
"resourceType": "UserAttributeType",
"location": "https://[base-server-url]/configuration/tenant/v2/User/AttributeType/DOB",
"version": "1"
},
"name": "Date of Birth",
"encrypted": true,
"predefined": true
}
Create User Attribute Type
POST /User/AttributeType
Sample Request
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "CUSTATT2",
"name": "Custom Attribute 2",
"notes":"Custom Attribute 2 notes"
}
Sample Response
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "CUSTATT2",
"meta":
{
"resourceType": "UserAttributeType",
"location": "https://[base-server-url]/configuration/tenant/v2/User/AttributeType/CUSTATT2",
"version": "1"
},
"name": "Custom Attribute 2",
"notes":"Custom Attribute 2 notes"
"encrypted": false,
"predefined": false
}
Replace User Attribute Type
PUT /User/AttributeType/{id}
Sample request where "Date of Birth" is added to the notes property of the AttributeType DOB
{
"notes": "Date of Birth"
}
Sample Response
{
"schemas": ["urn:hid:scim:api:idp:2.0:userattribute:Type"],
"id": "DOB",
"meta":
{
"resourceType": "UserAttributeType",
"location": "https://[base-server-url]/configuration/tenant/v2/User/AttributeType/DOB",
"version": "1"
},
"name": "Date of Birth",
"notes": "Date of Birth",
"encrypted": true,
"predefined": true
}
Delete User Attribute Type
DELETE /User/AttributeType/{id}