Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello:
I am attempting to modify people insights settings via Graph PowerShell. Specifically, I want to configure the 'DisabledForGroup' setting. My process is shown below. Everything appears to be successful (no errors), but the setting changes never take effect. Even the tenant disable fails.
# Connect to MS Graph with applicable scopes
Connect-MgGraph -Scopes "User.Read.All","User.ReadWrite.All","User.ReadWrite"
# Use the Beta Endpoint
Select-MgProfile beta
$Tenantid = "xxxxxxxxxx.onmicrosoft.com"
# This is the group we want Person Insights disabled for
$Groupid = "xxxxxxxxx-d2d8-48c9-8d88-edcb0aa7c195"
# Show current settings for PersonInsights
Get-MgOrganizationSettingPersonInsight -OrganizationId $TenantId
DisabledForGroup :
Id :
IsEnabledInOrganization : True
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#organization('xxxxxxxxxx.onm
icrosoft.com')/settings/peopleInsights/$entity]}
# Set DisabledForGroup on PersonInsights
Update-MgOrganizationSettingPersonInsight -OrganizationId $Tenantid -DisabledForGroup $Groupid
# Confirm settings applied
Get-MgOrganizationSettingPersonInsight -OrganizationId $TenantId
DisabledForGroup :
Id :
IsEnabledInOrganization : True
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#organization('xxxxxxxxxx.onm
icrosoft.com')/settings/peopleInsights/$entity]}
### Settings were NOT applied successfully. DisabledForGroup remains empty.
### Note: Tenant disable also fails (IsEnabledInOrganization remains True): Update-MgOrganizationSettingPersonInsight -OrganizationId $Tenantid -IsEnabledInOrganization:$false
Please let me know if this is a known issue and when it may be scheduled for resolution.
Thank you.