Getting SCSM security roles of a specific user with PowerShell
SCSM security role delegation can be managed (listed and modified) using PowerShell commands. In this recipe, we discuss and provide steps to list all SCSM security roles a specific user is a member of using the SCSM PowerShell commands.
Getting ready
You need to ensure you have successfully installed the SCSM product, are a user in the SCSM Administrators role and have the SCSM console open.
You must download and install the SCSM PowerShell Cmdlets found at http://smlets.codeplex.com/ (see the Downloading and installing SMLets recipe in Chapter 12, Automating Service Manager 2016).
How to do it...
Here are the steps you must follow to list the configuration of security roles using PowerShell commands:
- Type the following code into a notepad or a plain text editor:
    Param([string]$userName)     # Name of the SCSM Management Server     $smDefaultComputer...