SCOM Powershell: How do I scope views or folders for an existing user role?

George Symeonides 25 Reputation points
2023-09-06T08:18:13.6333333+00:00

How do we scope views/folders for a user role?

There's a way to scope tasks using the -TaskScope property:

$Role = Get-SCOMUserRole -Name "Constoso SQL Operators"
$NewTaskList = Get-SCOMTask -Name "*SQL*"
$Role | Set-SCOMUserRole -TaskScope $NewTaskList

But there is no equivalent for views or folders, e.g. -ViewScope

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,420 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
853 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,861 Reputation points
    2023-09-06T09:10:19.1033333+00:00

    Hi,

    In System Center Operations Manager, you can't directly scope views or folders for a user role using a built-in parameter like -ViewScope as you do with tasks. Instead, scoping views and folders for user roles in SCOM is typically done through role-based access control (RBAC) profiles.