-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Mötz Jensen edited this page Sep 10, 2020
·
1 revision
$tenantId = "b1f48e34-0e42-4f31-8050-62210022acf5"
$urlAuth = "https://login.microsoftonline.com/{0}/oauth2/token" -f $tenantId
$clientId = "d53c0687-9b59-42ed-849c-86acdc517c86"
$clientSecret = "d7trPvPbMoQtPEpMWt4E"
$url = "https://CustomerName.operations.dynamics.com"
Invoke-ClientCredentialsGrant -AuthProviderUri $urlAuth -Resource $url -ClientId $clientId -ClientSecret $clientSecret