Posted on 05-28-2024 12:28 AM
Hi, I am trying to deploy Office 2021 (VolumeLicense) and with that I want do disable the ability for users to login to office and use their private Office 365 licenses.
On this site (https://learn.microsoft.com/de-de/microsoft-365/enterprise/network-requests-in-office-2016-for-mac?v...) I found three preferences witch to my understanding should just do that:
defaults write com.microsoft.Word UseOnlineContent -integer 0
defaults write com.microsoft.Excel UseOnlineContent -integer 0
defaults write com.microsoft.Powerpoint UseOnlineContent -integer 0
But they don't seem to work (not when deployed through Jamf or run locally).
Has anyone been handling this?
Solved! Go to Solution.
Posted on 06-13-2024 07:10 AM
I have just tested the following:
Refering from this Help Article (https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/access-management/office-feature-disabl... under the Section "More Information" at the bottom).
The Article is for the Windows version of Office but worked just fine for me in my Mac. The Key you want to add to your defaults is called "SignInOptions". You can use the following values for this flag:
When I used this command
defaults write com.microsft.Word SignInOptions -integer 3
the app would only open a blank white window instead of the login screen.
It works the same for the other Applications I tested.
I hope that helps.
05-28-2024 12:35 AM - edited 05-28-2024 12:41 AM
Then you push from jamf, you use root, you need to run it as administrator for the use
Like:
#!/bin/bash
currentuser=$(/bin/ls -la /dev/console | /usr/bin/cut -d ' ' -f 4)
su -l $currentuser -c "defaults write /Users/$currentuser/Library/Preferences/com.microsoft.Word UseOnlineContent -integer 0"
but you need your write to work first
Posted on 05-28-2024 12:40 AM
try
defaults read com.microsoft.Word
Posted on 05-28-2024 12:43 AM
As I wrote, I tried it locally but Office ignores this setting or it is no longer valid:
defaults read com.microsoft.Word
{
AppExitGraceful = 1;
...
LoginKeychainEmpty = 1;
...
UseOnlineContent = 0;
...
}
Posted on 05-28-2024 12:37 AM
is com.microsoft.Powerpoint a user or system plist?
05-28-2024 10:33 AM - edited 05-28-2024 10:45 AM
Have you looked at a configuration profile - From https://learn.microsoft.com/en-us/deployoffice/mac/preferences-outlook#allow-only-corporate-mailboxe...
Category Details
Domain com.microsoft.Outlook
Key AllowedEmailDomains
Data Type Array of Strings
Possible values Various (example: "contoso.com")
Requires Configuration Profile No
Availability 16.18
Comments Doesn't remove or disconnect accounts already added in Outlook.
Edit: testing with adding the key for our domain and trying to add a gmail account gets denied.
Posted on 05-28-2024 11:02 PM
Hi, yea but this is only for Outlook, right?
We don't even install Outlook. Only Word/Excel/PowerPoint
Posted on 06-13-2024 07:10 AM
I have just tested the following:
Refering from this Help Article (https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/access-management/office-feature-disabl... under the Section "More Information" at the bottom).
The Article is for the Windows version of Office but worked just fine for me in my Mac. The Key you want to add to your defaults is called "SignInOptions". You can use the following values for this flag:
When I used this command
defaults write com.microsft.Word SignInOptions -integer 3
the app would only open a blank white window instead of the login screen.
It works the same for the other Applications I tested.
I hope that helps.