Accessing and Modifying 'Lunch Hours' in 'Viva Insights' via script (GraphApi or Powershell)

Hil 101 Reputation points
2023-12-01T16:40:20.2966667+00:00

I can use "Viva Insights" to modify Lunch Hours via https://insights.viva.office.com/#/PersonalApp/AppSettings/WorkWeekSettings/ enter image description here

How do I modify the same via GraphApi or PowerShell or some automated means?

I am an Exchange Admin. We have a hybrid environment with all users in O365 (Cloud). We have to modify the properties for over 2000 users and I am looking at an automated way.

I am seeing that the 'Viva Insights' data is stored in the mailbox as in https://sharegate.com/blog/what-is-microsoft-viva-insights. But I cannot find where in the O365 mailbox it is located. I tried doing a Get-Mailbox and Get-MailboxStatistics. I also tried Ms Graph (https://developer.microsoft.com/en-us/graph/graph-explorer) and I see something for Viva Goals but unfortunately nothing for Viva Insights.

I tried doing a 'Get-VivaInsightsSettings -Identity E937@zzzz.com | fl' but I do not see any thing for lunch hours.

Please help, Thanks

Viva Insights
Viva Insights
A Microsoft Viva module that provides insights and recommendations designed to improve productivity and wellbeing.
72 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,081 questions
0 comments No comments
{count} votes