-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: outlook mailbox settings set
#6208
Comments
@pnp/cli-for-microsoft-365-maintainers Will you have time to review this? |
Few remarks:
Does this apply to Exchange Online admins as well? Maybe separate commands would be more clear, on the other side, this is a |
@milanholemans Even Exchange admins or Global admins can't read other users' mailbox settings |
Ok then, if you've applied the remarks, for me it looks ok to implement. |
I will take it |
All yours 👍 |
Usage
m365 outlook mailbox settings set
Description
Update user mailbox settings
Options
-i, --userId [userId]
userId
oruserName
, but not both. This option is required when using application permissions.-n, --userName [userName]
userId
oruserName
, but not both. This option is required when using application permissions.--dateFormat [dateFormat]
dd.MM.yyyy
.--timeFormat [timeFormat]
H:mm
.--timeZone [timeZone]
--language [language]
en-US
.--delegateMeetingMessageDeliveryOptions [delegateMeetingMessageDeliveryOptions]
sendToDelegateOnly
,sendToDelegateAndPrincipal
, orsendToDelegateAndInformationToPrincipal
.--workingDays [workingDays]
monday
,tuesday
,wednesday
,thursday
,friday
,saturday
, orsunday
.--workingHoursStartTime [workingHoursStartTime]
--workingHoursEndTime [workingHoursEndTime]
--workingHoursTimeZone [workingHoursTimeZone]
--autoReplyExternalAudience [autoReplyExternalAudience]
none
,contactsOnly
, orall
.--autoReplyExternalMessage [autoReplyExternalMessage]
--autoReplyInternalMessage [autoReplyInternalMessage]
--autoReplyStartDateTime [autoReplyStartDateTime]
--autoReplyStartTimeZone [autoReplyStartTimeZone]
--autoReplyEndDateTime [autoReplyEndDateTime]
--autoReplyEndTimeZone [autoReplyEndTimeZone]
--autoReplyStatus [autoReplyStatus]
disabled
,alwaysEnabled
, orscheduled
.Examples
Update date, time format and time zone of the signed-in user.
Update working hours of a user specified by id
Set scheduled automatic replies for the internal audience of a user specified by UPN
Default properties
No response
Additional Info
Requires
MailboxSettings.ReadWrite
permission.The signed-in users can edit only theirs mailbox settings. It's not possible to read mailbox settings of another user with delegated permissions.
The options
userId
anduserName
should be specified only when the command is executed with application permissions.https://learn.microsoft.com/en-us/graph/api/user-update-mailboxsettings?view=graph-rest-1.0&tabs=http
All those settings are under one Graph API endpoint, but if you think that it makes sense to split them up, we can have standalone commands for automatic replies and for working hours. It should make review and testing easier.
To read mailbox settings, users can use
m365 aad user get --properties mailboxSettings
I will work on it.
The text was updated successfully, but these errors were encountered: