Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting Role Based Access Control


Troubleshooting permission issues can be challenging, especially if you've implemented custom RBAC roles. In this recipe we'll take a look at some useful troubleshooting techniques that can be used to troubleshoot issues related to RBAC.

How to do it...

There are several scenarios in which you can use the Exchange Management Shell cmdlets to solve problems with RBAC, and there are a couple of cmdlets that you'll need to use to do this. The following steps outline solutions for some common troubleshooting situations:

  1. To determine which management roles have been assigned to a user, use the following command syntax:

    Get-ManagementRoleAssignment -GetEffectiveUsers | 
      Where-Object {$_.EffectiveUserName -eq 'sysadmin'}
  2. To retrieve a list of users that have been assigned a specific management role, run the following command and specify a role name such as the Legal Hold role, as shown next:

    Get-ManagementRoleAssignment -Role 'Legal Hold' -GetEffectiveUsers...