Skip to main content

SCIM CustomObject examples

Operations

List all

List all GroupUser.CustomObjects.

Request
GET http://<your-domain>/soffid/webservice/scim2/v1/GroupUserCustomObject
Response 200 OK
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "totalResults": 25,6,
    "startIndex": 1,
    "Resources": [
        {
            "groupDescription": "Enterprise",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/480412"CustomObject/848157",
                "resourceType": "GroupUser"CustomObject"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
            ],
            "start"name": "2020-07-02 12:14:48"aa",
            "fullName"description": "test User"aaa",
            "disabled": false,
            "attributes": {
                "address": "2"
            },
            "id": 480412,848157,
            "user"type": "test2",
            "primaryGroup": false,
            "group": "enterprise"building"
        },
        {
            "groupDescription": "World Modified",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/503629"CustomObject/1510208",
                "resourceType": "GroupUser"CustomObject"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
            ],
            "start"name": "2020-08-06 15:52:12"ES",
            "fullName"description": "test User"Spain",
            "end": "2021-02-26 13:05:44",
            "disabled": true,
            "attributes": {},
            "id": 503629,
            "user": "test2",
            "primaryGroup": false,
            "group": "world2"
        },
        {
            "groupDescription": "Enterprise Administrators Group",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1182887",
                "resourceType": "GroupUser"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"
            ],
            "start": "2020-12-31 16:48:58",
            "fullName": "John Smith",
            "disabled": false,
            "attributes": {
                "comments"language": "This is a test",
                "startDate": "2021-01-01 00:00:00"English"
            },
            "id": 1182887,1510208,
            "user"type": "jsmith",
            "primaryGroup": false,
            "group": "admingroup"country"
        },
      ...........
    ]
}

List by filter

List all GroupUsersCustomObjects with a filter expression.

It is allowed to use pagination and sort the information, for more information visit the Sorting and Pagination information.

Request

List all GroupUserCustomObjects with a filter expression.

GET http://<your-domain>/soffid/webservice/scim2/v1/GroupUser?CustomObject?filter=groupDescriptiondescription eq "World Modified"Spain
Response 200 OK
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "totalResults": 4,1,
    "startIndex": 1,
    "Resources": [
        {
            "groupDescription": "World Modified",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/503629"CustomObject/1510208",
                "resourceType": "GroupUser"CustomObject"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
            ],
            "start"name": "2020-08-06 15:52:12"ES",
            "fullName"description": "test User"Spain",
            "end": "2021-02-26 13:05:44",
            "disabled": true,
            "attributes": {
                "language": "English"
            },
            "id": 503629,1510208,
            "user"type": "test2",
            "primaryGroup": false,
            "group": "world2"
        },
        {
            "groupDescription": "World Modified",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1519730",
                "resourceType": "GroupUser"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"
            ],
            "start": "2021-02-20 18:08:23",
            "fullName": "Dilbert ADAMS .",
            "end": "2021-02-20 19:07:45",
            "disabled": true,
            "attributes": {},
            "id": 1519730,
            "user": "dilbert",
            "primaryGroup": false,
            "group": "world2"
        },
        {
            "groupDescription": "World Modified",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1521501",
                "resourceType": "GroupUser"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"
            ],
            "start": "2021-02-20 20:21:06",
            "fullName": "Dilbert ADAMS .",
            "disabled": false,
            "attributes": {},
            "id": 1521501,
            "user": "dilbert",
            "primaryGroup": false,
            "group": "world2"
        },
        {
            "groupDescription": "World Modified",
            "meta": {
                "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1558480",
                "resourceType": "GroupUser"
            },
            "schemas": [
                "urn:soffid:com.soffid.iam.api.GroupUser"
            ],
            "start": "2021-02-26 13:06:24",
            "fullName": "test User",
            "disabled": false,
            "attributes": {},
            "id": 1558480,
            "user": "test2",
            "primaryGroup": false,
            "group": "world2"country"
        }
    ]
}

Query by id

Query a GroupUserCustomObject by its id (primary key). 

Request
GET http://<your-domain>/soffid/webservice/scim2/v1/GroupUser/1974296CustomObject/848062
Response 200 OK
{
    "groupDescription": "Help desk support team",
    "meta": {
        "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1974296"CustomObject/848062",
        "resourceType": "GroupUser"CustomObject"
    },
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "start"name": "2021-05-05 12:49:51"HQ",
    "fullName"description": "John Smith"Headquarters",
    "disabled": false,
    "attributes": {
        "startDate"address": "2021-05-04 00:00:00"1"
    },
    "id": 1974296,848062,
    "user"type": "jsmith",
    "primaryGroup": false,
    "group": "it"building"
}

Create

To create a GroupUser.CustomObject.

Request

POST http://<your-domain>/soffid/webservice/scim2/v1/GroupUserCustomObject

JSON

{
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "group"name": "it"IT",
    "groupDescription"description": "Help desk support team"Italy",
    "user"type": "ckelp"country",
    "fullName": "Casey Kelp",
    "primaryGroup": true,
    "attributes": {
        "language": "English"
    }
}
Response 201 Created
{
    "groupDescription": "Help desk support team",
    "meta": {
        "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1976741"CustomObject/1977187",
        "resourceType": "GroupUser"CustomObject"
    },
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "start"name": "2021-05-11 10:39:23"IT",
    "fullName"description": "Casey Kelp"Italy",
    "disabled": false,
    "attributes": {
        "language": "English"
    },
    "id": 1976741,1977187,
    "user"type": "ckelp",
    "primaryGroup": true,
    "group": "it"country"
}

Update partial

Update only of the attributes with changes, only these atrributes will be updated, the rest will maintain the same value.

Request
PATCH http://<your-domain>/soffid/webservice/scim2/v1/GroupUser/1976741CustomObject/1977187

JSON

{
    "Operations": [
        {
            "op": "replace",
            "path": "groupDescription"attributes",
            "value": "Enterprise engineering team"
        },
        {
                "op"language": "replace",German"
            "path": "group",
            "value": "EngineeringTeam"}
        }
    ]
}
Response 200 OK
{
    "groupDescription": "Enterprise engineering team",
    "meta": {
        "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1976741"CustomObject/1977187",
        "resourceType": "GroupUser"CustomObject"
    },
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "start"name": "2021-05-11 10:39:23"IT",
    "fullName"description": "Casey Kelp"Italy",
    "disabled": false,
    "attributes": {
        "language": "German"
    },
    "id": 1976741,1977187,
    "user"type": "ckelp",
    "primaryGroup": true,
    "group": "EngineeringTeam"country"
}

Update all

This operation replacereplaces all values in the GroupUser.CustomObject.

  • Note that the attribute id is required to confirm that the resource "...GroupUser/CustomObject/<id>" is the same that the JSON GroupUser.CustomObject.
  • Note that all the attributes not included in the request will be cleared in the GroupUserCustomObject type and their data will be lost.
  • Note that not all the attributes are updatable, for example tag meta, avoid these tags. For more information see Resource data model page
Request
PUT http://<your-domain>/soffid/webservice/scim2/v1/GroupUser/1976741CustomObject/1977187

JSON

{
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "id": 1976741,1977187,
    "group"name": "it"IT",
    "groupDescription"description": "Help desk support team"Italy",
    "user"type": "ckelp"country",
    "fullName": "Casey Kelp",
    "primaryGroup": true,
    "attributes": {
        "language": "English"
    }
}
Response 200 OK
{
    "groupDescription": "Help desk support team",
    "meta": {
        "location": "http://soffid.pat.lab:8080/webservice/scim2/v1/GroupUser/1976741"CustomObject/1977187",
        "resourceType": "GroupUser"CustomObject"
    },
    "schemas": [
        "urn:soffid:com.soffid.iam.api.GroupUser"CustomObject"
    ],
    "fullName"name": "Casey Kelp"IT",
    "disabled"description": false,"Italy",
    "attributes": {
        "language": "English"
    },
    "id": 1976741,1977187,
    "user"type": "ckelp",
    "primaryGroup": true,
    "group": "it"country"
}

Delete

Delete a role.CustomObject.

Please note after this delete, the accountCustomObject has to be created again to use it in the next examples.

Request
DELETE http://<your-omain>/soffid/webservice/scim2/v1/GroupUser/1976741CustomObject/1977187
Response 204 No Content
204 No Content

Error response

For more infomationinformation about error response visit https://bookstack.soffid.com/link/116#bkmrk-error-response