Skip to main content

Config for msgraph

Jobs that use the msgraph adaptor may require authentication. A "credential" for the msgraph adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjlGWERwYmZNRl"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$comment": "OAuth2",
"properties": {
"apiVersion": {
"title": "API Version",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"placeholder": "v1.0",
"description": "Microsoft Graph api version",
"minLength": 1,
"examples": [
"v1.0",
"beta"
]
},
"access_token": {
"title": "Access Token",
"type": "string",
"description": "Your Microsoft Graph access token",
"writeOnly": true,
"minLength": 1,
"examples": [
"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjlGWERwYmZNRl"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"access_token"
]
}