Skip to content

Commit

Permalink
Fix client version
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Feb 21, 2023
1 parent bea1be0 commit feef509
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/services/groups/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ func NewClient(o *common.ClientOptions) *Client {
administrativeUnitsClient := msgraph.NewAdministrativeUnitsClient(o.TenantID)
o.ConfigureClient(&administrativeUnitsClient.BaseClient)

// SDK uses wrong endpoint for v1.0 API, see https://github.com/manicminer/hamilton/issues/222
administrativeUnitsClient.BaseClient.ApiVersion = msgraph.VersionBeta

directoryObjectsClient := msgraph.NewDirectoryObjectsClient(o.TenantID)
o.ConfigureClient(&directoryObjectsClient.BaseClient)

Expand Down

0 comments on commit feef509

Please sign in to comment.