Application Admin consent required Data checked
UserShiftPreferences.ReadWrite.All
- Resource
- UserShiftPreferences what it applies to
- Access
- ReadWrite read and change
- Scope
- All every item in the tenant, not just the signed-in user's
Allows the app to manage all users' shift schedule preferences without a signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /users 2 | ||||
| GET | / | A | — | |
| PATCH | / | A | — | |
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes UserShiftPreferences.ReadWrite.All.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgUserSettingShiftPreference | Users | GET /users/{id}/settings/shiftPreferences |
| Update-MgUserSettingShiftPreference | Users | PATCH /users/{id}/settings/shiftPreferences |
| Get-MgBetaUserSettingShiftPreference | Beta.Users | GET /users/{id}/settings/shiftPreferences |
Granting UserShiftPreferences.ReadWrite.All lets an app read and change these Microsoft Graph resources in your tenant.
shiftPreferencesGraph reference
| Property | Type | Description |
|---|---|---|
| availability | shiftAvailability collection | Availability of the user to be scheduled for work and its recurrence pattern. |
| createdDateTime | DateTimeOffset | Timestamp corresponding to when the entity was created. |
| id | String | The identifier of the entity. |
| lastModifiedBy | identitySet | Identity of the person who last modified the entity. |
| lastModifiedDateTime | DateTimeOffset | Timestamp corresponding to when the entity was last modified. |
| @odata.etag | String | The change key for the entity. |