Microsoft Graph API

  1. Find your tenantId https://docs.microsoft.com/en-us/onedrive/find-your-office-365-tenant-id
  2. Enable graph API and add an APP to allow VMS to connect to their Graph API https://developer.microsoft.com/en-us/graph/quick-start
  3. Add the appropriate permissions allowing the TIKS VMS to retrieve list of users
    Application User.Read.All, User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All
  4. Generate a Client Secret, and you should have the client_id and the client_secret
$post_params = array(
    "client_id" => $clientId,
    "scope" => "https%3A%2F%2Fgraph.microsoft.com%2F.default",
    "client_secret" => $clientSecret,
    "grant_type" => "client_credentials",
);

Please provide your TIKS account manager

  1. Tenant ID
  2. Client ID
  3. Client Secret

Further reference in more detail https://vincentlauzon.com/2017/01/31/using-microsoft-graph-api-to-interact-with-azure-ad/

Back to top