{"info":{"_postman_id":"5b2b3b11-7757-4061-bff9-ecc50a5963d8","name":"eDiscovery Demo","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Case Creation","item":[{"name":"List ediscoveryCases","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"2421dc87-34be-47fd-bf63-2da7ce9f7423"}}],"id":"0921df77-a5a2-4566-8b52-408368fb0279","request":{"method":"GET","header":[],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases"},"response":[]},{"name":"Create ediscoveryCase","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ediscoveryCaseId\", json.id);"]}}],"id":"299b4829-bdfb-4c6a-b2c2-e7cc25c8d6d6","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"{{displayName}}\",\n    \"description\": \"{{description}}\",\n    \"externalId\": \"{{externalId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases"},"response":[]},{"name":"Get ediscoveryCase","id":"3ae06c76-a4c9-41ff-b33a-4629e4689c84","request":{"method":"GET","header":[],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}"},"response":[]},{"name":"Update ediscoveryCase","id":"90b79625-7559-44eb-b917-5f062c8091fb","request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"externalId\": \"Updated external case value 12345\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}"},"response":[]},{"name":"Create Custodians","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"custodianId\", json.id);","postman.setEnvironmentVariable(\"custodianEmail\", json.email);"]}}],"id":"fc1fe16b-f725-4ea7-a178-d8b64eb6a23b","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"{{custodianEmail}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians"},"response":[]},{"name":"List ediscoveryCustodian","id":"7e870d9e-066e-4b6c-919c-bec7cafc78b6","request":{"method":"GET","header":[],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians"},"response":[]},{"name":"Create custodian userSource","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"custodianUserSource\", json.id);"]}}],"id":"2704e1ea-ba1e-4f7e-b231-0c3fe48e82c6","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"{{custodianEmail}}\",\n    \"includedSources\": \"mailbox, site\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians/{{custodianId}}/userSources"},"response":[]},{"name":"ediscoveryCustodian: applyHold","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"ac930500-ef1e-410f-811b-d7b2730edfe4"}}],"id":"23981628-59b8-4199-a09f-479966ccac64","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"ids\": [\n    \"{{custodianId}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians/applyHold"},"response":[]},{"name":"List userSources","id":"2efa0085-9d9c-440b-91f2-d4269234c71d","request":{"method":"GET","header":[],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians/{{custodianId}}/userSources"},"response":[]},{"name":"Create ediscoveryNoncustodialDataSources","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"noncustodialId\", json.id);","postman.setEnvironmentVariable(\"noncustodialDataSource\", json.id);"]}}],"id":"c523e035-dfa5-48fb-8c6d-b59ed1b52830","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"dataSource\": {\n        \"@odata.type\": \"microsoft.graph.security.userSource\",\n        \"email\": \"{{noncustodialEmail}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/noncustodialDataSources"},"response":[]},{"name":"ediscoveryNoncustodialDataSource: applyHold","id":"4d0bca01-4076-49a2-9c7d-10351df57caa","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"ids\": [\n    \"{{noncustodialId}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/noncustodialDataSources/applyHold"},"response":[]},{"name":"List ediscoveryNoncustodialDataSources","id":"56d55d67-5cfc-4bc2-9462-463c19dd975b","request":{"method":"GET","header":[],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/noncustodialDataSources"},"response":[]}],"id":"92311128-33b3-4b61-a855-fce570006d28"},{"name":"Workflow automation","item":[{"name":"Create searches","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ediscoverySearchId\", json.id);"]}}],"id":"3fae9dd1-ae0e-41a7-b8b8-09ded01f782c","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My Search\",\n    \"description\": \"This is an eDiscovery Premium search using Microsoft Graph\",\n    \"contentQuery\": \"HasAttachment=true\",\n    \"custodianSources@odata.bind\": [\n        \"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/custodians/{{custodianId}}/userSources/{{custodianUserSource}}\"\n    ],\n    \"noncustodialSources@odata.bind\": [\n        \"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/noncustodialdatasources/{{noncustodialDataSource}}\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/searches"},"response":[]},{"name":"List searches","id":"11ccf80a-ba34-43a1-a292-f6241f7cb6d3","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/searches"},"response":[]},{"name":"ediscoverySearch: estimate Statistics","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"a98d9d19-e03a-4823-8f82-8194e42534b2"}}],"id":"18370e8f-ff55-43c3-bc67-5abe60c79f3c","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/searches/{{ediscoverySearchId}}/estimateStatistics"},"response":[]},{"name":"List lastEstimateStatisticsOperation","id":"2713c1bb-679b-4a3d-b05b-1f8bf4c09348","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/searches/{{ediscoverySearchId}}/lastEstimateStatisticsOperation"},"response":[]},{"name":"Create reviewSets","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ediscoveryReviewSetId\", json.id);"]}}],"id":"b616a927-21a7-4676-a86e-92e6bb1a5868","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My review set 1 Microsoft Graph\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets"},"response":[]},{"name":"List reviewSets","id":"0e3e20c3-dd1c-4e2c-9716-19eb7d585ffe","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets"},"response":[]},{"name":"ediscoveryReviewSet: addToReviewSet","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"3e8dc1b1-f22c-481c-ba92-28063593ae21"}}],"id":"89bff3e5-bafc-438d-b9b4-6a5b434d708a","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"search\": {\n        \"id\": \"{{ediscoverySearchId}}\"\n    },\n    \"additionalDataOptions\": \"linkedFiles\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets/{{ediscoveryReviewSetId}}/addToReviewSet"},"response":[]},{"name":"Create ediscoveryReviewSetQuery","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var json = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ediscoveryReviewSetQueryId\", json.id);"]}}],"id":"b603bf57-9577-4482-96e2-9efe87f6a339","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My Microsoft Graph Query 1\",\n    \"contentQuery\": \"(Author=\\\"edison\\\")\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets/{{ediscoveryReviewSetId}}/queries"},"response":[]},{"name":"Update ediscoveryReviewSetQuery","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"4d7db4f9-d7a4-437b-8c11-e50bb3aef8f5"}}],"id":"e0803da4-6836-4a41-aaa9-2e5d40f04a0b","request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My Microsoft Graph Query 1 (Update)\",\n    \"contentQuery\": \"(ContentType=document)\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets/{{ediscoveryReviewSetId}}/queries/{{ediscoveryReviewSetQueryId}}"},"response":[]},{"name":"List queries","id":"190ddb32-878b-4802-aae0-5bf0900ce3e6","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets/{{ediscoveryReviewSetId}}/queries"},"response":[]},{"name":"Delete ediscoveryReviewSetQuery","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"7afc97bb-4a4b-4971-a455-863c34770d10"}}],"id":"8eb49ce7-bdbb-47ac-aec8-c9d0ad10a0f0","request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"displayName\": \"My Microsoft Graph Query 1 (Update)\",\n    \"contentQuery\": \"(ContentType=document)\"\n}","options":{"raw":{"language":"json"}}},"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/reviewSets/{{ediscoveryReviewSetId}}/queries/{{ediscoveryReviewSetQueryId}}"},"response":[]},{"name":"List caseOperations","id":"2a8bddf2-273d-4f8b-a441-2d5d22945a42","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{{ediscoveryCaseId}}/operations"},"response":[]}],"id":"fd315b82-5ec2-4cdc-9476-1827180b6d2d"}],"auth":{"type":"oauth2","oauth2":{"clientId":"{{ClientID}}","redirect_uri":"https://localhost:8080","state":"12345","scope":"eDiscovery.ReadWrite.All","clientSecret":"{{ClientSecret}}","accessTokenUrl":"https://login.microsoftonline.com/{{TenantID}}/oauth2/v2.0/token","authUrl":"https://login.microsoftonline.com/{{TenantID}}/oauth2/v2.0/authorize","tokenName":"eDiscovery Demo Token","addTokenTo":"header"}},"event":[{"listen":"prerequest","script":{"id":"ea91b695-97bd-4c5f-8983-da9a0e0ca71f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"90a2e3e9-3f85-4dba-892d-8bd276bdb285","type":"text/javascript","exec":[""]}}],"variable":[{"id":"5a92b9fc-e349-461b-b344-2c5b44475d6d","key":"displayName","value":"Microsoft Graph eDiscovery Case Testing","type":"string"},{"id":"f7cb0d0e-c9ed-495c-96b2-715c1ec8c45f","key":"description","value":"eDiscovery case description!","type":"string"},{"id":"1e92ba19-62de-4056-9292-40ca1634e6ef","key":"externalId","value":"324516","type":"string"},{"id":"e0aea413-f2cb-4bbb-a8d1-203fb3b5beb3","key":"ediscoveryCaseId","value":"","type":"string"},{"id":"be6bfbf5-8b74-4a3d-9424-196e162efd2e","key":"custodianId","value":"","type":"string"},{"id":"a98e2d44-e5b7-4b76-8c98-c3ebfc08d466","key":"custodianEmail","value":"","type":"string"},{"id":"16d704a7-8f9a-467d-bda7-2c5d7d2aac5c","key":"custodianUserSource","value":"","type":"string"},{"id":"f046a875-d83b-4344-82bd-c81418b17954","key":"noncustodialId","value":"","type":"string"},{"id":"ee29160f-367e-40c9-9dca-ea532bb52998","key":"noncustodialEmail","value":"","type":"string"},{"id":"df9c4d90-6980-4f79-b113-4ff1fd1f081a","key":"noncustodialDataSource","value":"","type":"string"},{"id":"be5246d8-b5f3-4297-b6ad-7f64292a6449","key":"ediscoverySearchId","value":"","type":"string"},{"id":"e48ea358-f89d-4f21-bbac-2c21dbc8aadb","key":"ediscoveryReviewSetId","value":"","type":"string"},{"id":"9feff2e5-7b05-41dc-8b54-8da0bb89ce02","key":"ediscoveryReviewSetQueryId","value":"","type":"string"}]}