{
	"info": {
		"_postman_id": "658d5fb8-cf37-412e-b255-a9c18ef06d10",
		"name": "SCIM calls",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "35392706"
	},
	"item": [
		{
			"name": "Patch Example",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "PATCH",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"schemas\": [\n        \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n    ],\n    \"Operations\": [\n{\n            \"op\": \"Replace\",\n            \"path\": \"active\",\n            \"value\": \"False\"\n        }\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users/<WorkvivoID>",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users",
						"<WorkvivoID>"
					]
				}
			},
			"response": []
		},
		{
			"name": "Patch Example Full",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "PATCH",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"schemas\": [\n        \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n    ],\n    \"Operations\": [\n        {\n            \"op\": \"Replace\",\n            \"path\": \"name.familyName\",\n            \"value\": \"LAST_NAME\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"name.givenName\",\n            \"value\": \"FIRST_NAME\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"addresses[type eq \\\"work\\\"].locality\",\n            \"value\": \"LOCATION\"\n        },\n        {\n            \"op\": \"Add\",\n            \"path\": \"department\",\n            \"value\": \"DEPARTMENT\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:hireDate\",\n            \"value\": \"2019-04-07T23:00:00Z\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:dateOfBirth\",\n            \"value\": \"2008-04-07T23:00:00Z\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"title\",\n            \"value\": \"NEW JOB TITLE\"\n        },\n        {\n            \"op\": \"Replace\",\n            \"path\": \"manager\",\n            \"value\": \"WORKVIVO_ID\"\n        }\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users/<WorkvivoID>",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users",
						"<WorkvivoID>"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST EXAMPLE",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"schemas\": [\n        \"urn:ietf:params:scim:schemas:core:2.0:User\",\n        \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\n    ],\n    \"externalId\": \"8715\",\n    \"userName\": \"joe.bloggs@workvivo.com\",\n    \"displayName\": \"Joe Bloggs\",\n    \"name\": {\n        \"formatted\": \"Joe Bloggs\",\n        \"familyName\": \"Joe\",\n        \"givenName\": \"Bloggs\"\n    },\n    \"emails\": [\n        {\n            \"type\": \"work\",\n            \"value\": \"WorkvivoID\",\n            \"primary\": true\n        }\n    ],\n    \"phoneNumbers\": [\n        {\n            \"primary\": true,\n            \"type\": \"work\",\n            \"value\": \"1234567\"\n        },\n        {\n            \"primary\": true,\n            \"type\": \"mobile\",\n            \"value\": \"+1234567\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"locality\": \"Ireland\",\n            \"type\": \"work\"\n        }\n    ],\n    \"title\": \"Technical Support\",\n    \"active\": true,\n    \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\n        \"department\": \"Customer Support\",\n        \"hireDate\": \"2018-04-07T23:00:00Z\",\n        \"dateOfBirth\": \"1992-01-01T00:00:00Z\",\n        \"Gender\": \"Male\",\n        \"manager\": {\n            \"displayName\": \"\",\n            \"value\": \"WORKVIVO_ID FROM GET\",\n            \"$ref\": \"\"\n        },\n        \"taxonomies\": [\n            {\n                \"displayName\": \"Customer Experience\",\n                \"type\": \"Division\"\n            },\n            {\n                \"displayName\": \"Workvivo\",\n                \"type\": \"Company\"\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST EXAMPLE - Minimum attributes",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"schemas\": [\n        \"urn:ietf:params:scim:schemas:core:2.0:User\",\n        \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\n    ],\n    \"externalId\": \"87152\",\n    \"userName\": \"joe.bloggs@workvivo.com\",\n    \"name\": {\n        \"familyName\": \"Joe\",\n        \"givenName\": \"Bloggs\"\n    },\n    \"emails\": [\n        {\n            \"type\": \"work\",\n            \"value\": \"joe.bloggs@workvivo.com\",\n            \"primary\": true\n        }\n    ],\n    \"active\": true\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users"
					]
				}
			},
			"response": []
		},
		{
			"name": "PUT Example",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"schemas\": [\n        \"urn:ietf:params:scim:schemas:core:2.0:User\",\n        \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\n    ],\n    \"externalId\": \"8752\",\n    \"userName\": \"testEmail\",\n    \"name\": {\n        \"formatted\": \"Joe Bloggs\",\n        \"familyName\": \"Bloggs\",\n        \"givenName\": \"Joe\"\n    },\n    \"emails\": [\n        {\n            \"type\": \"work\",\n            \"value\": \"Joe.bloggs2@workvivo.com\",\n            \"primary\": true\n        }\n    ],\n    \"phoneNumbers\": [\n        {\n            \"primary\": true,\n            \"type\": \"work\",\n            \"value\": \"3534353\"\n        },\n        {\n            \"primary\": true,\n            \"type\": \"mobile\",\n            \"value\": \"+354769999\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"locality\": \"Location2\",\n            \"type\": \"work\"\n        }\n    ],\n    \"title\": \"JOb Title\",\n    \"active\": true,\n    \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\n        \"department\": \"Department\",\n        \"hireDate\": \"2018-04-07T23:00:00Z\",\n        \"dateOfBirth\": \"1977-01-01T00:00:00Z\",\n        \"manager\": {\n            \"displayName\": \"\",\n            \"value\": \"WORKVIVOID\",\n            \"$ref\": \"\"\n        },\n        \"taxonomies\": [\n            {\n                \"displayName\": \"dv1\",\n                \"type\": \"Division\"\n            },\n            {\n                \"displayName\": \"company2\",\n                \"type\": \"Company\"\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Users Collection",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users/",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users",
						""
					]
				}
			},
			"response": []
		},
		{
			"name": "GET User",
			"protocolProfileBehavior": {
				"strictSSL": false
			},
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users?count=10&startIndex=11",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users"
					],
					"query": [
						{
							"key": "count",
							"value": "10"
						},
						{
							"key": "startIndex",
							"value": "11"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "GET User Filter pagination",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "<WORKVIVO_URL>/scim/v2/scim/Users?count=10&startIndex=11",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"scim",
						"v2",
						"scim",
						"Users"
					],
					"query": [
						{
							"key": "count",
							"value": "10"
						},
						{
							"key": "startIndex",
							"value": "11"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "GET User Filter ExternalID",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "<WORKVIVO_URL>/v2/scim/Users?filter=externalId eq \"1234556\"",
					"host": [
						"<WORKVIVO_URL>"
					],
					"path": [
						"v2",
						"scim",
						"Users"
					],
					"query": [
						{
							"key": "filter",
							"value": "externalId eq \"1234556\""
						}
					]
				}
			},
			"response": []
		}
	]
}