diff --git a/Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs b/Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs index 8fad98d8..2a3540e4 100644 --- a/Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs +++ b/Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs @@ -27,25 +27,23 @@ public override Task CreateAsync(Resource resource, string correlation throw new HttpResponseException(HttpStatusCode.BadRequest); } - Core2EnterpriseUser user = resource as Core2EnterpriseUser; - if (string.IsNullOrWhiteSpace(user.UserName)) + var user = resource as Core2EnterpriseUser; + if (string.IsNullOrWhiteSpace(user?.UserName)) { throw new HttpResponseException(HttpStatusCode.BadRequest); } - IEnumerable exisitingUsers = this.storage.Users.Values; + IEnumerable existingUsers = this.storage.Users.Values; if ( - exisitingUsers.Any( - (Core2EnterpriseUser exisitingUser) => - string.Equals(exisitingUser.UserName, user.UserName, StringComparison.Ordinal)) + existingUsers.Any(existingUser => string.Equals(existingUser.UserName, user.UserName, StringComparison.Ordinal)) ) { throw new HttpResponseException(HttpStatusCode.Conflict); } // Update metadata - DateTime created = DateTime.UtcNow; + var created = DateTime.UtcNow; user.Metadata.Created = created; user.Metadata.LastModified = created; @@ -64,7 +62,6 @@ public override Task DeleteAsync(IResourceIdentifier resourceIdentifier, string } string identifier = resourceIdentifier.Identifier; - if (this.storage.Users.ContainsKey(identifier)) { this.storage.Users.Remove(identifier); @@ -97,20 +94,18 @@ public override Task QueryAsync(IQueryParameters parameters, string IEnumerable results; var predicate = PredicateBuilder.False(); - Expression> predicateAnd; if (parameters.AlternateFilters.Count <= 0) { - results = this.storage.Users.Values.Select( - (Core2EnterpriseUser user) => user as Resource); + results = this.storage.Users.Values.Select(user => user as Resource); } else { foreach (IFilter queryFilter in parameters.AlternateFilters) { - predicateAnd = PredicateBuilder.True(); + var predicateAnd = PredicateBuilder.True(); IFilter andFilter = queryFilter; IFilter currentFilter = andFilter; @@ -120,12 +115,24 @@ public override Task QueryAsync(IQueryParameters parameters, string { throw new ArgumentException(SystemForCrossDomainIdentityManagementServiceResources.ExceptionInvalidParameters); } - else if (string.IsNullOrWhiteSpace(andFilter.ComparisonValue)) { throw new ArgumentException(SystemForCrossDomainIdentityManagementServiceResources.ExceptionInvalidParameters); } + // ID filter + else if (andFilter.AttributePath.Equals(AttributeNames.Identifier, StringComparison.OrdinalIgnoreCase)) + { + if (andFilter.FilterOperator != ComparisonOperator.Equals) + { + throw new NotSupportedException( + string.Format(SystemForCrossDomainIdentityManagementServiceResources.ExceptionFilterOperatorNotSupportedTemplate, andFilter.FilterOperator)); + } + + var id = andFilter.ComparisonValue; + predicateAnd = predicateAnd.And(p => string.Equals(p.Identifier, id, StringComparison.OrdinalIgnoreCase)); + } + // UserName filter else if (andFilter.AttributePath.Equals(AttributeNames.UserName, StringComparison.OrdinalIgnoreCase)) { @@ -137,8 +144,6 @@ public override Task QueryAsync(IQueryParameters parameters, string string userName = andFilter.ComparisonValue; predicateAnd = predicateAnd.And(p => string.Equals(p.UserName, userName, StringComparison.OrdinalIgnoreCase)); - - } // ExternalId filter @@ -152,11 +157,9 @@ public override Task QueryAsync(IQueryParameters parameters, string string externalIdentifier = andFilter.ComparisonValue; predicateAnd = predicateAnd.And(p => string.Equals(p.ExternalIdentifier, externalIdentifier, StringComparison.OrdinalIgnoreCase)); - - } - //Active Filter + // Active Filter else if (andFilter.AttributePath.Equals(AttributeNames.Active, StringComparison.OrdinalIgnoreCase)) { if (andFilter.FilterOperator != ComparisonOperator.Equals) @@ -167,32 +170,37 @@ public override Task QueryAsync(IQueryParameters parameters, string bool active = bool.Parse(andFilter.ComparisonValue); predicateAnd = predicateAnd.And(p => p.Active == active); + } + // DisplayName Filter + else if (andFilter.AttributePath.Equals(AttributeNames.DisplayName, StringComparison.OrdinalIgnoreCase)) + { + if (andFilter.FilterOperator != ComparisonOperator.Equals) + { + throw new NotSupportedException( + string.Format(SystemForCrossDomainIdentityManagementServiceResources.ExceptionFilterOperatorNotSupportedTemplate, andFilter.FilterOperator)); + } + + var displayName = andFilter.ComparisonValue; + predicateAnd = predicateAnd.And(p => p.DisplayName == displayName); } - //LastModified filter + // LastModified filter else if (andFilter.AttributePath.Equals($"{AttributeNames.Metadata}.{AttributeNames.LastModified}", StringComparison.OrdinalIgnoreCase)) { if (andFilter.FilterOperator == ComparisonOperator.EqualOrGreaterThan) { DateTime comparisonValue = DateTime.Parse(andFilter.ComparisonValue).ToUniversalTime(); predicateAnd = predicateAnd.And(p => p.Metadata.LastModified >= comparisonValue); - - } else if (andFilter.FilterOperator == ComparisonOperator.EqualOrLessThan) { DateTime comparisonValue = DateTime.Parse(andFilter.ComparisonValue).ToUniversalTime(); predicateAnd = predicateAnd.And(p => p.Metadata.LastModified <= comparisonValue); - - } else throw new NotSupportedException( string.Format(SystemForCrossDomainIdentityManagementServiceResources.ExceptionFilterOperatorNotSupportedTemplate, andFilter.FilterOperator)); - - - } else throw new NotSupportedException( @@ -204,7 +212,6 @@ public override Task QueryAsync(IQueryParameters parameters, string } while (currentFilter.AdditionalFilter != null); predicate = predicate.Or(predicateAnd); - } results = this.storage.Users.Values.Where(predicate.Compile()); @@ -212,7 +219,7 @@ public override Task QueryAsync(IQueryParameters parameters, string if (parameters.PaginationParameters != null) { - int count = parameters.PaginationParameters.Count.HasValue ? parameters.PaginationParameters.Count.Value : 0; + int count = parameters.PaginationParameters.Count ?? 0; return Task.FromResult(results.Take(count).ToArray()); } else @@ -226,40 +233,33 @@ public override Task ReplaceAsync(Resource resource, string correlatio throw new HttpResponseException(HttpStatusCode.BadRequest); } - Core2EnterpriseUser user = resource as Core2EnterpriseUser; - - if (string.IsNullOrWhiteSpace(user.UserName)) + var user = resource as Core2EnterpriseUser; + if (string.IsNullOrWhiteSpace(user?.UserName)) { throw new HttpResponseException(HttpStatusCode.BadRequest); } - if - ( - this.storage.Users.Values.Any( - (Core2EnterpriseUser exisitingUser) => - string.Equals(exisitingUser.UserName, user.UserName, StringComparison.Ordinal) && - !string.Equals(exisitingUser.Identifier, user.Identifier, StringComparison.OrdinalIgnoreCase)) - ) + if (this.storage.Users.Values.Any(existingUser => + string.Equals(existingUser.UserName, user.UserName, StringComparison.Ordinal) && + !string.Equals(existingUser.Identifier, user.Identifier, StringComparison.OrdinalIgnoreCase))) { throw new HttpResponseException(HttpStatusCode.Conflict); } - Core2EnterpriseUser exisitingUser = this.storage.Users.Values - .FirstOrDefault( - (Core2EnterpriseUser exisitingUser) => - string.Equals(exisitingUser.Identifier, user.Identifier, StringComparison.OrdinalIgnoreCase) - ); - if (exisitingUser == null) + Core2EnterpriseUser existingUser = this.storage.Users.Values + .FirstOrDefault(existingUser => + string.Equals(existingUser.Identifier, user.Identifier, StringComparison.OrdinalIgnoreCase)); + if (existingUser == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } // Update metadata - user.Metadata.Created = exisitingUser.Metadata.Created; + user.Metadata.Created = existingUser.Metadata.Created; user.Metadata.LastModified = DateTime.UtcNow; this.storage.Users[user.Identifier] = user; - Resource result = user as Resource; + var result = user as Resource; return Task.FromResult(result); } @@ -280,14 +280,12 @@ public override Task RetrieveAsync(IResourceRetrievalParameters parame throw new ArgumentNullException(nameof(parameters)); } - Resource result = null; string identifier = parameters.ResourceIdentifier.Identifier; - if (this.storage.Users.ContainsKey(identifier)) { - if (this.storage.Users.TryGetValue(identifier, out Core2EnterpriseUser user)) + if (this.storage.Users.TryGetValue(identifier, out var user)) { - result = user as Resource; + var result = user as Resource; return Task.FromResult(result); } } @@ -317,9 +315,7 @@ public override Task UpdateAsync(IPatch patch, string correlationIdentifier) throw new ArgumentException(SystemForCrossDomainIdentityManagementServiceResources.ExceptionInvalidOperation); } - PatchRequest2 patchRequest = - patch.PatchRequest as PatchRequest2; - + PatchRequest2 patchRequest = patch.PatchRequest as PatchRequest2; if (null == patchRequest) { string unsupportedPatchTypeName = patch.GetType().FullName; diff --git a/PostmanCollection.json b/PostmanCollection.json index 7e19feda..f1914c92 100644 --- a/PostmanCollection.json +++ b/PostmanCollection.json @@ -1,9 +1,10 @@ { "info": { - "_postman_id": "195ae322-3171-4766-90ea-c5c0d3e5401d", + "_postman_id": "9bcb0cf6-cc0f-4a7c-8641-d45d11ee1dcb", "name": "SCIM Tests", "description": "The set of tests for the SCIM reference api", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "13581040" }, "item": [ { @@ -15,7 +16,6 @@ { "listen": "test", "script": { - "id": "a762d68b-524c-4386-b694-0a081e1083f9", "exec": [ "var jsonData = JSON.parse(responseBody);\r", "postman.setEnvironmentVariable(\"token\", jsonData.token);\r", @@ -64,8 +64,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "Endpoint tests", @@ -76,7 +75,6 @@ { "listen": "prerequest", "script": { - "id": "4023a7a6-b759-42c3-a791-554cdcafb199", "exec": [ "pm.environment.get(\"token\");" ], @@ -86,7 +84,6 @@ { "listen": "test", "script": { - "id": "28710651-d4bc-4289-8b1b-38754958f766", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -130,7 +127,6 @@ { "listen": "prerequest", "script": { - "id": "4023a7a6-b759-42c3-a791-554cdcafb199", "exec": [ "pm.environment.get(\"token\");" ], @@ -140,7 +136,6 @@ { "listen": "test", "script": { - "id": "28710651-d4bc-4289-8b1b-38754958f766", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -183,7 +178,6 @@ { "listen": "prerequest", "script": { - "id": "4023a7a6-b759-42c3-a791-554cdcafb199", "exec": [ "pm.environment.get(\"token\");" ], @@ -193,7 +187,6 @@ { "listen": "test", "script": { - "id": "28710651-d4bc-4289-8b1b-38754958f766", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -241,7 +234,6 @@ { "listen": "prerequest", "script": { - "id": "4023a7a6-b759-42c3-a791-554cdcafb199", "exec": [ "pm.environment.get(\"token\");" ], @@ -251,7 +243,6 @@ { "listen": "test", "script": { - "id": "28710651-d4bc-4289-8b1b-38754958f766", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -280,14 +271,14 @@ "method": "GET", "header": [], "url": { - "raw": "{{Protocol}}://{{Server}}{{Port}}/{{Api}}/serviceConfiguration", + "raw": "{{Protocol}}://{{Server}}{{Port}}/{{Api}}/ServiceProviderConfig", "protocol": "{{Protocol}}", "host": [ "{{Server}}{{Port}}" ], "path": [ "{{Api}}", - "serviceConfiguration" + "ServiceProviderConfig" ] } }, @@ -299,7 +290,6 @@ { "listen": "prerequest", "script": { - "id": "4023a7a6-b759-42c3-a791-554cdcafb199", "exec": [ "pm.environment.get(\"token\");" ], @@ -309,7 +299,6 @@ { "listen": "test", "script": { - "id": "28710651-d4bc-4289-8b1b-38754958f766", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -350,8 +339,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "User tests", @@ -362,7 +350,6 @@ { "listen": "test", "script": { - "id": "b113e2a4-3bcc-4bf7-8412-196977200586", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -399,7 +386,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName123\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserName123\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -427,7 +414,6 @@ { "listen": "test", "script": { - "id": "b113e2a4-3bcc-4bf7-8412-196977200586", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -464,7 +450,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName222\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \t\t\"Department\": \"bob\",\r\n \t\t\"Manager\" : { \"Value\": \"SuzzyQ\" }\r\n }\r\n}", + "raw": "{\r\n \"userName\": \"UserName222\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"Department\": \"bob\",\r\n \"Manager\" : { \"Value\": \"SuzzyQ\" }\r\n }\r\n}", "options": { "raw": { "language": "json" @@ -492,7 +478,6 @@ { "listen": "test", "script": { - "id": "d961e0b3-2edc-4075-b465-58402c590be8", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -542,7 +527,6 @@ { "listen": "test", "script": { - "id": "d961e0b3-2edc-4075-b465-58402c590be8", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -592,7 +576,6 @@ { "listen": "test", "script": { - "id": "315d8f5b-9383-4a5b-a8bc-0d3d183d5800", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -646,7 +629,6 @@ { "listen": "test", "script": { - "id": "44212323-c0c4-4c4c-8079-68ceddf8459b", "exec": [ "pm.test(\"Body contians id1\", function () {", " var id = pm.environment.get(\"id1\");", @@ -743,7 +725,6 @@ { "listen": "test", "script": { - "id": "154019ac-76ee-4881-8815-a6550da7d0fb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -798,7 +779,6 @@ { "listen": "test", "script": { - "id": "5d82f681-33ae-4cf0-9389-00f307923e71", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -830,7 +810,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserNameReplace2\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"id\": \"{{id2}}\",\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"NewName\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bobREPLACE.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserNameReplace2\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"id\": \"{{id2}}\",\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"NewName\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bobREPLACE.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -858,7 +838,6 @@ { "listen": "test", "script": { - "id": "d961e0b3-2edc-4075-b465-58402c590be8", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -907,7 +886,6 @@ { "listen": "test", "script": { - "id": "99266ba9-9d1c-4924-9a24-50784ac41338", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -951,7 +929,6 @@ { "listen": "test", "script": { - "id": "99266ba9-9d1c-4924-9a24-50784ac41338", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -989,8 +966,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "Group tests", @@ -1001,7 +977,6 @@ { "listen": "prerequest", "script": { - "id": "75e4dc30-bcb7-4ed4-91e2-8341ba0ca919", "exec": [ "" ], @@ -1011,7 +986,6 @@ { "listen": "test", "script": { - "id": "917bcf70-7eae-4285-8ac1-3ffb1238118d", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -1047,7 +1021,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"externalId\":\"${__UUID}\",\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"displayName\": \"Group1DisplayName\",\r\n \"members\":[]\r\n}", + "raw": "{\r\n \"externalId\": \"{{$guid}}\",\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"displayName\": \"Group1DisplayName\",\r\n \"members\":[]\r\n}", "options": { "raw": { "language": "json" @@ -1074,7 +1048,6 @@ { "listen": "test", "script": { - "id": "6aa6b3cc-e4c7-4201-8c65-36f238bd7d82", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -1110,7 +1083,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName333\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserName333\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1137,7 +1110,6 @@ { "listen": "test", "script": { - "id": "e5f7bff1-166c-49d3-93bf-4742db3ba5c9", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -1173,7 +1145,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName444\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserName444\",\r\n \"active\": true,\r\n \"displayName\": \"lennay\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Adrew Ryan\",\r\n \"familyName\": \"Ryan\",\r\n \"givenName\": \"Andrew\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"testing@bob2.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob3.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1200,7 +1172,6 @@ { "listen": "prerequest", "script": { - "id": "75e4dc30-bcb7-4ed4-91e2-8341ba0ca919", "exec": [ "" ], @@ -1210,7 +1181,6 @@ { "listen": "test", "script": { - "id": "917bcf70-7eae-4285-8ac1-3ffb1238118d", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -1246,7 +1216,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"externalId\":\"${__UUID}\",\r\n \"displayName\": \"GroupDisplayName2\",\r\n \"members\":\r\n [\r\n \t{\r\n \t\t\"value\":\"{{id3}}\",\r\n \t\t\"display\":\"VP\"\r\n \t}\t\r\n ]\r\n}", + "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"externalId\": \"{{$guid}}\",\r\n \"displayName\": \"GroupDisplayName2\",\r\n \"members\":\r\n [\r\n {\r\n \"value\": \"{{id3}}\",\r\n \"display\":\"VP\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1273,7 +1243,6 @@ { "listen": "test", "script": { - "id": "3d062c67-bf87-453f-a7ba-e17297f0fa87", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1316,7 +1285,6 @@ { "listen": "test", "script": { - "id": "6c6cd06a-5357-418d-aace-961a052e1846", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -1352,7 +1320,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"externalId\":\"${__UUID}\",\r\n \"displayName\": \"GroupDisplayName3\",\r\n \"members\":[]\r\n}", + "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"externalId\": \"{{$guid}}\",\r\n \"displayName\": \"GroupDisplayName3\",\r\n \"members\":[]\r\n}", "options": { "raw": { "language": "json" @@ -1379,7 +1347,6 @@ { "listen": "test", "script": { - "id": "f6c2d2ea-cafe-4741-8742-35d0cead8a3e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1411,7 +1378,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"id\":\"{{groupid3}}\",\r\n \"displayName\": \"putName\",\r\n \"members\":[\r\n \t{\r\n \t\t\"value\": \"{{id3}}\",\r\n \t\t\"display\":\"VP\"\r\n \t},\r\n \t{\r\n \t\t\"value\":\"{{id4}}\",\r\n \t\t\"display\":\"SenorVP\"\r\n \t}\r\n ]\r\n}", + "raw": "{\r\n \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\r\n \"id\": \"{{groupid3}}\",\r\n \"displayName\": \"putName\",\r\n \"members\":[\r\n {\r\n \"value\": \"{{id3}}\",\r\n \"display\":\"VP\"\r\n },\r\n {\r\n \"value\": \"{{id4}}\",\r\n \"display\":\"SenorVP\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1439,7 +1406,6 @@ { "listen": "test", "script": { - "id": "8f506fce-31cc-4268-bc3d-8957f9c3f516", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1519,7 +1485,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ],\r\n \"Operations\": [\r\n {\r\n \"name\": \"addMember\",\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n \t{\r\n \t\t\"displayName\":\"new User\",\r\n \t\t\"value\":\"{{id4}}\"\t\r\n \t}\r\n \t]\r\n \r\n }\r\n ]\r\n}", + "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ],\r\n \"Operations\": [\r\n {\r\n \"name\": \"addMember\",\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n {\r\n \"displayName\":\"new User\",\r\n \"value\": \"{{id4}}\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1611,7 +1577,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ],\r\n \"Operations\": [\r\n {\r\n \"name\": \"addMember\",\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n \t{\r\n \t\t\"displayName\":\"new User\",\r\n \t\t\"value\":\"{{id4}}\"\t\r\n \t}\r\n \t]\r\n \r\n }\r\n ]\r\n}", + "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ],\r\n \"Operations\": [\r\n {\r\n \"name\": \"addMember\",\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n {\r\n \"displayName\": \"new User\",\r\n \"value\": \"{{id4}}\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -1639,7 +1605,6 @@ { "listen": "test", "script": { - "id": "3596a517-04a0-4b9b-824b-8dd0a8306f17", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1739,7 +1704,6 @@ { "listen": "test", "script": { - "id": "3596a517-04a0-4b9b-824b-8dd0a8306f17", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1793,7 +1757,6 @@ { "listen": "test", "script": { - "id": "30a6a5d8-b9eb-441d-8d1b-ea4c60758748", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -1837,7 +1800,6 @@ { "listen": "test", "script": { - "id": "30a6a5d8-b9eb-441d-8d1b-ea4c60758748", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -1881,7 +1843,6 @@ { "listen": "test", "script": { - "id": "e02821fc-0a31-433b-9f04-30590d893dd4", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -1925,7 +1886,6 @@ { "listen": "test", "script": { - "id": "e02821fc-0a31-433b-9f04-30590d893dd4", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -1969,7 +1929,6 @@ { "listen": "test", "script": { - "id": "e02821fc-0a31-433b-9f04-30590d893dd4", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -2007,8 +1966,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "ComplexAttribute tests", @@ -2019,7 +1977,6 @@ { "listen": "test", "script": { - "id": "3486886d-3b26-48c1-887f-03e1a1701c8b", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2055,7 +2012,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName111\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"emailName357\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserName111\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"emailName357\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -2082,7 +2039,6 @@ { "listen": "test", "script": { - "id": "3486886d-3b26-48c1-887f-03e1a1701c8b", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2118,7 +2074,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userName\": \"UserName222\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"${__UUID}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"jump@bob.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", + "raw": "{\r\n \"userName\": \"UserName222\",\r\n \"active\": true,\r\n \"displayName\": \"BobIsAmazing\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"name\": {\r\n \"formatted\": \"Ryan Leenay\",\r\n \"familyName\": \"Leenay\",\r\n \"givenName\": \"Ryan\"\r\n },\r\n \"emails\": [\r\n {\r\n \"Primary\": true,\r\n \"type\": \"work\",\r\n \"value\": \"jump@bob.com\"\r\n },\r\n {\r\n \"Primary\": false,\r\n \"type\": \"home\",\r\n \"value\": \"testinghome@bob.com\"\r\n }\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -2145,7 +2101,6 @@ { "listen": "test", "script": { - "id": "cb5670a2-a4c9-41a4-99c7-a852da02a6c0", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2198,7 +2153,6 @@ { "listen": "test", "script": { - "id": "16b0ff7a-dff1-405a-a1cb-f236bbfb0146", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2252,7 +2206,6 @@ { "listen": "test", "script": { - "id": "b833558e-f3ee-4381-8b07-a2f86d53fe2a", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -2296,7 +2249,6 @@ { "listen": "test", "script": { - "id": "b833558e-f3ee-4381-8b07-a2f86d53fe2a", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -2334,8 +2286,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "User tests with garbage", @@ -2346,7 +2297,6 @@ { "listen": "test", "script": { - "id": "03468a5e-58d1-4ec8-b932-2c051715de81", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2419,7 +2369,6 @@ { "listen": "test", "script": { - "id": "fb9c8956-32b8-4433-bd0d-c2d64b0c5890", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2487,7 +2436,6 @@ { "listen": "test", "script": { - "id": "02f8b389-0af0-477b-8837-faad3df5a082", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2539,7 +2487,6 @@ { "listen": "test", "script": { - "id": "26b7fc13-a319-4d2e-a763-61fc6910eb46", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2602,7 +2549,6 @@ { "listen": "test", "script": { - "id": "26b7fc13-a319-4d2e-a763-61fc6910eb46", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -2665,7 +2611,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2724,7 +2669,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2783,7 +2727,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -2846,7 +2789,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -2909,7 +2851,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2942,7 +2883,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n\t\"id\" : \"{{1stuserid}}\",\r\n \"userame\": \"OMalley\",\r\n \"active\": false,\r\n \"addresses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", + "raw": "{\r\n \"id\" : \"{{1stuserid}}\",\r\n \"userame\": \"OMalley\",\r\n \"active\": false,\r\n \"addresses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -2970,7 +2911,6 @@ { "listen": "test", "script": { - "id": "fd367af3-a9c6-4156-9032-6c97a8e6bb88", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -3006,7 +2946,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n\t\"id\" : \"{{1stuserid}}\",\r\n \"userName\": \"OMalley\",\r\n \"active\": false,\r\n \"adreses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", + "raw": "{\r\n \"id\" : \"{{1stuserid}}\",\r\n \"userName\": \"OMalley\",\r\n \"active\": false,\r\n \"adreses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -3034,7 +2974,6 @@ { "listen": "test", "script": { - "id": "67cfa75d-1765-4f75-aadf-3f8ed448b440", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3097,7 +3036,6 @@ { "listen": "test", "script": { - "id": "27790826-a6ed-4f1e-b993-e59002124576", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -3129,7 +3067,7 @@ ], "body": { "mode": "raw", - "raw": "{ \"schemas\":\r\n [\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\r\n \"Operations\":[\r\n {\r\n \"op\":\"Replace\",\r\n \"path\":\"userName\",\r\n \"value\":\"newusername\"\r\n }]\r\n }", + "raw": "{ \"schemas\":\r\n [\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\r\n \"Operations\":[\r\n {\r\n \"op\":\"Replace\",\r\n \"path\":\"userName\",\r\n \"value\":\"newusername\"\r\n }]\r\n }", "options": { "raw": { "language": "json" @@ -3157,7 +3095,6 @@ { "listen": "test", "script": { - "id": "33629cf0-6dd5-4e0c-b543-a3c1e99ac240", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -3217,7 +3154,6 @@ { "listen": "test", "script": { - "id": "15418860-b5a5-4d47-86ce-fbd537a609b6", "exec": [ "pm.test(\"Username changed\", function () {", " var jsonData = pm.response.json();", @@ -3267,7 +3203,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -3313,7 +3248,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n\t\"id\" : \"{{1stuserid}}\",\r\n \"userName\": \"OMalley\",\r\n \"active\": false,\r\n \"addresses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", + "raw": "{\r\n \"id\" : \"{{1stuserid}}\",\r\n \"userName\": \"OMalley\",\r\n \"active\": false,\r\n \"addresses\": [\r\n {\r\n \"country\": \"Germany\",\r\n \"formatted\": \"1923 Jennifer Way Suite 040\\nSouth Nancy, MI 55645\",\r\n \"locality\": \"East Mercedes\",\r\n \"postalCode\": \"99265\",\r\n \"region\": \"Montana\",\r\n \"streetAddress\": \"4939 Hess Fork\",\r\n \"type\": \"work\",\r\n \"primary\": false\r\n },\r\n {\r\n \"country\": \"bahams\",\r\n \"formatted\": \"18522 Lisa Unions\\nEast Gregory, CT 52311\",\r\n \"locality\": null,\r\n \"postalCode\": null,\r\n \"region\": null,\r\n \"streetAddress\": null,\r\n \"type\": \"other\",\r\n \"primary\": false\r\n }\r\n ],\r\n \"displayName\": \"Kimberly Baker\",\r\n \"emails\": [\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"anna33@example.com\"\r\n },\r\n {\r\n \"type\": \"other\",\r\n \"primary\": false,\r\n \"value\": \"anna33@gmail.com\"\r\n }\r\n ],\r\n \"meta\": {\r\n \"created\": \"2019-09-18T18:15:26.5788954+00:00\",\r\n \"lastModified\": \"2019-09-18T18:15:26.5788976+00:00\",\r\n \"resourceType\": \"User\"\r\n },\r\n \"name\": {\r\n \"formatted\": \"Daniel Mcgee\",\r\n \"familyName\": \"OMalley\",\r\n \"givenName\": \"Darl\",\r\n \"honorificPrefix\": null,\r\n \"honorificSuffix\": null\r\n },\r\n \"phoneNumbers\": [\r\n {\r\n \"type\": \"fax\",\r\n \"primary\": false,\r\n \"value\": \"312-320-0500\"\r\n },\r\n {\r\n \"type\": \"mobile\",\r\n \"primary\": false,\r\n \"value\": \"312-320-1707\"\r\n },\r\n {\r\n \"type\": \"work\",\r\n \"primary\": true,\r\n \"value\": \"312-320-0932\"\r\n }\r\n ],\r\n \"preferredLanguage\": \"xh\",\r\n \"roles\": [],\r\n \"title\": \"Site engineer\",\r\n \"externalId\": \"22fbc523-6032-4c5f-939d-5d4850cf3e52\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -3341,7 +3276,6 @@ { "listen": "test", "script": { - "id": "abe0b7b3-f0ea-44bb-95cf-5bc6045fd490", "exec": [ "pm.test(\"Total results\", function () {", " var jsonData = pm.response.json();", @@ -3400,7 +3334,6 @@ { "listen": "test", "script": { - "id": "f2b90fb7-97fd-40ec-bb7f-2cf3b6d50f05", "exec": [ "pm.test(\"Total results\", function () {", " var jsonData = pm.response.json();", @@ -3450,7 +3383,6 @@ { "listen": "test", "script": { - "id": "8b32e0cf-c64c-47fc-b441-c763d75fc808", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -3513,7 +3445,6 @@ { "listen": "test", "script": { - "id": "f2b90fb7-97fd-40ec-bb7f-2cf3b6d50f05", "exec": [ "pm.test(\"Total results\", function () {", " var jsonData = pm.response.json();", @@ -3563,7 +3494,6 @@ { "listen": "test", "script": { - "id": "f2b90fb7-97fd-40ec-bb7f-2cf3b6d50f05", "exec": [ "pm.test(\"Total results\", function () {", " var jsonData = pm.response.json();", @@ -3613,7 +3543,6 @@ { "listen": "test", "script": { - "id": "f2b90fb7-97fd-40ec-bb7f-2cf3b6d50f05", "exec": [ "pm.test(\"Total results\", function () {", " var jsonData = pm.response.json();", @@ -3657,8 +3586,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "Group tests with garbage", @@ -3669,7 +3597,6 @@ { "listen": "test", "script": { - "id": "63ad41d6-d6a2-4192-8ddd-f71b763eed82", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3732,7 +3659,6 @@ { "listen": "test", "script": { - "id": "a98345c8-1dfb-4969-a4c9-85ba8106144f", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -3766,7 +3692,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n\t\"id\": \"{{1stgroupid}}\",\r\n \"Operations\": [\r\n {\r\n \"op\":\"add\", \r\n \"path\": \"members\", \r\n \"value\": \"string id 1\"\r\n }\r\n ],\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ]\r\n}", + "raw": "{\r\n \"id\": \"{{1stgroupid}}\",\r\n \"Operations\": [\r\n {\r\n \"op\":\"add\", \r\n \"path\": \"members\", \r\n \"value\": \"string id 1\"\r\n }\r\n ],\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -3794,7 +3720,6 @@ { "listen": "test", "script": { - "id": "a98345c8-1dfb-4969-a4c9-85ba8106144f", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -3828,7 +3753,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n\t\"id\": \"{{1stgroupid}}\",\r\n \"Operations\": [\r\n {\r\n \"op\":\"add\", \r\n \"path\": \"members\", \r\n \"value\": \"string id 2\"\r\n }\r\n ],\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ]\r\n}", + "raw": "{\r\n \"id\": \"{{1stgroupid}}\",\r\n \"Operations\": [\r\n {\r\n \"op\":\"add\", \r\n \"path\": \"members\", \r\n \"value\": \"string id 2\"\r\n }\r\n ],\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\r\n ]\r\n}", "options": { "raw": { "language": "json" @@ -3856,7 +3781,6 @@ { "listen": "test", "script": { - "id": "3286c2d3-421e-4565-bfc0-5661bddaaca1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -3902,7 +3826,6 @@ { "listen": "test", "script": { - "id": "3286c2d3-421e-4565-bfc0-5661bddaaca1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -3954,7 +3877,6 @@ { "listen": "test", "script": { - "id": "ff497bb7-1dd7-4f08-99c3-cd528ffe4a34", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4013,8 +3935,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "Teardown garbage", @@ -4025,7 +3946,6 @@ { "listen": "test", "script": { - "id": "c632bef4-f555-4a8b-a38c-daa465caec55", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4069,7 +3989,6 @@ { "listen": "test", "script": { - "id": "1302dbf9-b2f9-4a7d-b481-7216834daca4", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4113,7 +4032,6 @@ { "listen": "test", "script": { - "id": "ebd39be7-d02b-47e3-805f-4769c6df050d", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4157,7 +4075,6 @@ { "listen": "test", "script": { - "id": "ebd39be7-d02b-47e3-805f-4769c6df050d", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4201,7 +4118,6 @@ { "listen": "test", "script": { - "id": "ebd39be7-d02b-47e3-805f-4769c6df050d", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4245,7 +4161,6 @@ { "listen": "test", "script": { - "id": "9efd2693-39bd-4394-a1e7-c87d6fdbf25e", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", @@ -4283,8 +4198,7 @@ }, "response": [] } - ], - "protocolProfileBehavior": [] + ] }, { "name": "Get all users", @@ -4292,7 +4206,6 @@ { "listen": "test", "script": { - "id": "c7493b40-8345-4eba-92f9-9b5d64ae3376", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4346,7 +4259,6 @@ { "listen": "test", "script": { - "id": "0561f20f-008a-4e82-896e-019d8ff6f9a8", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4393,7 +4305,6 @@ { "listen": "prerequest", "script": { - "id": "a25b8356-f8f2-431e-b08b-f7987d18db41", "type": "text/javascript", "exec": [ "" @@ -4403,7 +4314,6 @@ { "listen": "test", "script": { - "id": "3ba01074-4377-431d-81a0-c61f060242b1", "type": "text/javascript", "exec": [ "" @@ -4411,5 +4321,26 @@ } } ], - "protocolProfileBehavior": [] -} + "variable": [ + { + "key": "Protocol", + "value": "http", + "type": "string" + }, + { + "key": "Server", + "value": "localhost", + "type": "string" + }, + { + "key": "Port", + "value": ":49167", + "type": "string" + }, + { + "key": "Api", + "value": "scim", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/SCIM Inbound.postman_collection.json b/SCIM Inbound.postman_collection.json index d489376c..77b9fd94 100644 --- a/SCIM Inbound.postman_collection.json +++ b/SCIM Inbound.postman_collection.json @@ -1,8 +1,9 @@ { "info": { - "_postman_id": "2a0040af-4f1a-4c48-a860-0c2c6c5d8641", + "_postman_id": "84ab2a66-d719-44cd-ba9d-b4265aa5392e", "name": "SCIM Inbound", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "13581040" }, "item": [ { @@ -204,7 +205,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": true,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Contractor\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n\t\t{\r\n\t\t\t\"value\": \"john@example.com\",\r\n\t\t\t\"display\": \"john@example.com\",\r\n\t\t\t\"type\": \"home\"\r\n\t\t}\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\",\r\n \"manager\": {\r\n \"value\": \"{{lastUserId}}\"\r\n }\r\n }\r\n}", + "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": true,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Contractor\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n {\r\n \"value\": \"john@example.com\",\r\n \"display\": \"john@example.com\",\r\n \"type\": \"home\"\r\n }\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\",\r\n \"manager\": {\r\n \"value\": \"{{lastUserId}}\"\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" @@ -264,7 +265,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": false,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Employee\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n\t\t{\r\n\t\t\t\"value\": \"john@example.com\",\r\n\t\t\t\"display\": \"john@example.com\",\r\n\t\t\t\"type\": \"home\"\r\n\t\t}\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\",\r\n \"manager\": {\r\n \"value\": \"{{lastUserId}}\"\r\n }\r\n }\r\n}", + "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": false,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Employee\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n {\r\n \"value\": \"john@example.com\",\r\n \"display\": \"john@example.com\",\r\n \"type\": \"home\"\r\n }\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\",\r\n \"manager\": {\r\n \"value\": \"{{lastUserId}}\"\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" @@ -324,7 +325,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": false,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Employee\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n\t\t{\r\n\t\t\t\"value\": \"john@example.com\",\r\n\t\t\t\"display\": \"john@example.com\",\r\n\t\t\t\"type\": \"home\"\r\n\t\t}\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\"\r\n }\r\n}", + "raw": "{\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\r\n ],\r\n \"externalId\": \"{{$guid}}\",\r\n \"userName\": \"{{userName}}\",\r\n \"name\": {\r\n \"givenName\": \"{{givenName}}\",\r\n \"familyName\": \"{{familyName}}\"\r\n },\r\n \"active\": false,\r\n \"displayName\": \"{{displayName}}\",\r\n \"locale\": \"{{$randomCountryCode}}\",\r\n \"userType\": \"Employee\",\r\n \"title\": \"{{$randomJobTitle}}\",\r\n \"emails\": [\r\n {\r\n \"value\": \"john@woodgrove.com\",\r\n \"display\": \"john@woodgrove.com\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n },\r\n {\r\n \"value\": \"john@example.com\",\r\n \"display\": \"john@example.com\",\r\n \"type\": \"home\"\r\n }\r\n ],\r\n \"phoneNumbers\": [\r\n {\r\n \"value\": \"+1 {{$randomPhoneNumber}}\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"addresses\": [\r\n {\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"locality\": \"Redmond\",\r\n \"region\": \"WA\",\r\n \"postalCode\": \"98052\",\r\n \"country\": \"US\",\r\n \"type\": \"work\",\r\n \"primary\": true\r\n }\r\n ],\r\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\r\n \"employeeNumber\": \"{{$randomInt}}\",\r\n \"organization\": \"SCIM Corporation\",\r\n \"department\": \"{{$randomJobArea}}\"\r\n }\r\n}", "options": { "raw": { "language": "json" @@ -710,13 +711,13 @@ "method": "GET", "header": [], "url": { - "raw": "https://{{Server}}{{Port}}/{{Api}}/Users?filter=(ActiVe eq true) and meta.lastmodified ge \"2021-09-23T19:35:41.8420572Z\"", + "raw": "https://{{endpoint}}/scim/Users?filter=(ActiVe eq true) and meta.lastmodified ge \"2021-09-23T19:35:41.8420572Z\"", "protocol": "https", "host": [ - "{{Server}}{{Port}}" + "{{endpoint}}" ], "path": [ - "{{Api}}", + "scim", "Users" ], "query": [ @@ -758,13 +759,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "https://{{Server}}{{Port}}/{{Api}}/Users/{{id1}}", + "raw": "https://{{endpoint}}/scim/Users/{{id1}}", "protocol": "https", "host": [ - "{{Server}}{{Port}}" + "{{endpoint}}" ], "path": [ - "{{Api}}", + "scim", "Users", "{{id1}}" ] @@ -817,7 +818,7 @@ "bearer": [ { "key": "token", - "value": "", + "value": "{{token}}", "type": "string" } ] @@ -857,7 +858,7 @@ }, { "key": "endpoint", - "value": "localhost:5001" + "value": "localhost:49166" }, { "key": "lastUserId",