{ "info": { "name": "User Token", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Get Azure Token - User", "event": [ { "listen": "test", "script": { "exec": [ "pm.environment.set(\"bearerToken\", pm.response.json().access_token);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "grant_type", "value": "password", "type": "text" }, { "key": "password", "value": "{{user-password}}", "type": "text" }, { "key": "username", "value": "{{user-email}}", "type": "text" }, { "key": "client_id", "value": "{{client-id}}", "type": "text" }, { "key": "scope", "value": "{{scope}}", "type": "text" } ] }, "url": { "raw": "https://login.microsoftonline.com/:tenant/oauth2/v2.0/token", "protocol": "https", "host": [ "login", "microsoftonline", "com" ], "path": [ ":tenant", "oauth2", "v2.0", "token" ], "variable": [ { "key": "tenant", "value": "", "type": "string" } ] }, "description": "Getting azure token using user credentials" }, "response": [] } ] }