{
  "name": "microsoftentra",
  "display_name": "Microsoft Entra ID",
  "description": "Interact with Microsoft Entra ID API",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "microsoftEntraOAuth2Api",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "user"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/Microsoft/Entra/MicrosoftEntra.node.ts",
  "routing": {
    "base_url": "={{ ($credentials.graphApiBaseUrl || ",
    "auth_headers": [],
    "auth_query": [],
    "credential_name": "microsoftEntraOAuth2Api",
    "operations": [
      {
        "value": "addGroup",
        "method": "POST",
        "url": "/groups/{{ $parameter[",
        "body": ""
      },
      {
        "value": "create",
        "method": "POST",
        "url": "/users",
        "body": ""
      },
      {
        "value": "delete",
        "method": "DELETE",
        "url": "/users/{{ $parameter[",
        "body": ""
      },
      {
        "value": "get",
        "method": "GET",
        "url": "/users/{{ $parameter[",
        "body": ""
      },
      {
        "value": "getAll",
        "method": "GET",
        "url": "/users",
        "body": ""
      },
      {
        "value": "removeGroup",
        "method": "DELETE",
        "url": "/groups/{{ $parameter[",
        "body": ""
      },
      {
        "value": "update",
        "method": "PATCH",
        "url": "/users/{{ $parameter[",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "id",
        "send_type": "body",
        "dest_key": "@odata.id",
        "applies_to_operations": [
          "addGroup"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "accountEnabled",
        "send_type": "body",
        "dest_key": "accountEnabled",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "displayName",
        "send_type": "body",
        "dest_key": "displayName",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "userPrincipalName",
        "send_type": "body",
        "dest_key": "userPrincipalName",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "Simplified",
        "send_type": "query",
        "dest_key": "$select",
        "applies_to_operations": [
          "get"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "Raw",
        "send_type": "query",
        "dest_key": "$select",
        "applies_to_operations": [
          "get"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "fields",
        "send_type": "query",
        "dest_key": "$select",
        "applies_to_operations": [
          "get"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "limit",
        "send_type": "query",
        "dest_key": "$top",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "filter",
        "send_type": "query",
        "dest_key": "$filter",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "Minor",
        "send_type": "body",
        "dest_key": "ageGroup",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "businessPhones",
        "send_type": "body",
        "dest_key": "businessPhones",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "city",
        "send_type": "body",
        "dest_key": "city",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "companyName",
        "send_type": "body",
        "dest_key": "companyName",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "user"
        ]
      },
      {
        "param_name": "Granted",
        "send_type": "body",
        "dest_key": "consentProvidedForMinor",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "country",
        "send_type": "body",
        "dest_key": "country",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "department",
        "send_type": "body",
        "dest_key": "department",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "employeeId",
        "send_type": "body",
        "dest_key": "employeeId",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "employeeType",
        "send_type": "body",
        "dest_key": "employeeType",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "givenName",
        "send_type": "body",
        "dest_key": "givenName",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "employeeHireDate",
        "send_type": "body",
        "dest_key": "employeeHireDate",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "employeeLeaveDateTime",
        "send_type": "body",
        "dest_key": "employeeLeaveDateTime",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "costCenter",
        "send_type": "body",
        "dest_key": "employeeOrgData.costCenter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "division",
        "send_type": "body",
        "dest_key": "employeeOrgData.division",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "jobTitle",
        "send_type": "body",
        "dest_key": "jobTitle",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "surname",
        "send_type": "body",
        "dest_key": "surname",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "mail",
        "send_type": "body",
        "dest_key": "mail",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "mailNickname",
        "send_type": "body",
        "dest_key": "mailNickname",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "mobilePhone",
        "send_type": "body",
        "dest_key": "mobilePhone",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "officeLocation",
        "send_type": "body",
        "dest_key": "officeLocation",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "onPremisesImmutableId",
        "send_type": "body",
        "dest_key": "onPremisesImmutableId",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "otherMails",
        "send_type": "body",
        "dest_key": "otherMails",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "password",
        "send_type": "body",
        "dest_key": "passwordProfile.password",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "passwordPolicies",
        "send_type": "body",
        "dest_key": "passwordPolicies",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "postalCode",
        "send_type": "body",
        "dest_key": "postalCode",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "preferredLanguage",
        "send_type": "body",
        "dest_key": "preferredLanguage",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "state",
        "send_type": "body",
        "dest_key": "state",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "streetAddress",
        "send_type": "body",
        "dest_key": "streetAddress",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "usageLocation",
        "send_type": "body",
        "dest_key": "usageLocation",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "mailEnabled",
        "send_type": "body",
        "dest_key": "mailEnabled",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "group"
        ]
      },
      {
        "param_name": "securityEnabled",
        "send_type": "body",
        "dest_key": "securityEnabled",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "group"
        ]
      },
      {
        "param_name": "isAssignableToRole",
        "send_type": "body",
        "dest_key": "isAssignableToRole",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "membershipRule",
        "send_type": "body",
        "dest_key": "membershipRule",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "Paused",
        "send_type": "body",
        "dest_key": "membershipRuleProcessingState",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "includeMembers",
        "send_type": "query",
        "dest_key": "$expand",
        "applies_to_operations": [
          "get"
        ],
        "applies_to_resources": [
          "group"
        ]
      },
      {
        "param_name": "description",
        "send_type": "body",
        "dest_key": "description",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "group"
        ]
      },
      {
        "param_name": "preferredDataLocation",
        "send_type": "body",
        "dest_key": "preferredDataLocation",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "uniqueName",
        "send_type": "body",
        "dest_key": "uniqueName",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "Public",
        "send_type": "body",
        "dest_key": "visibility",
        "applies_to_operations": [],
        "applies_to_resources": []
      }
    ]
  }
}