RBAC Database Scopes in Exchange Server 2010 SP1 Beta

by Mike Pfeiffer on June 10, 2010

There are lots of great new features included with the Exchange 2010 SP1 beta. One of the new things that is really cool is the addition of Database Scopes. You can use Database Scopes with RBAC to control what type of access administrators have to your Exchange databases. I've been really impressed with everything that can be done with RBAC in the RTM version of Exchange 2010, and it gets even better in SP1. In this post, I'll cover an example of how you might use a Database Scope with RBAC.

Scenario

Let's say you manage a group of support staff that will be responsible for administering Exchange databases on mailbox servers in your Phoenix office. You need to allow these administrators to manage only the Exchange databases in the Phoenix office and they should not be able to modify databases on servers in other sites. In order to accomplish this, you can assign the support staff the built-in Databases role and use a Database Scope to limit their level of access.

Step 1: Create the Database Scope

There are two types of database scopes in SP1; database filter scopes and database list scopes. In this example, we'll create a database filter scope. Only databases with the prefix of "PHX" will be available to the support staff:

New-ManagementScope -Name "Phoenix Databases" -DatabaseRestrictionFilter {Name -Like "PHX*" }

As you can see in the above screen shot, you'll receive a warning letting you know that this scope will only be applied to users connecting to Exchange servers running SP1.

Step 2: Create the Role Assignment

Next, you are ready to assign the role. Use the following command to assign the built-in Databases role to the "Phoenix DB Admins" security group. Notice that the CustomConfigWriteScope is set to the database scope we created in the first step:

New-ManagementRoleAssignment -Name "Phoenix DB Admins_Databases" -SecurityGroup "Phoenix DB Admins" -Role "Databases" -CustomConfigWriteScope "Phoenix Databases"

Again, you'll receive a warning letting you know that this assignment will only be applied to users connecting to Exchange servers running SP1.

Step 3: Testing it out

Now you are ready to test this out. Launch EMS as one of the members of the "Phoenix DB Admins" group. To keep it simple, just try to modify the deleted item retention for a database:

So, as you can see, the above commands work since the database name is prefixed with "PHX". Now try modifying one of the databases in New York:

Now you get an error stating that the database is not within the users management scope...Mission accomplished.

Related Posts

{ 2 trackbacks }

Exchange 2010 SP1 posts from around the web this week.. « Steve Goodman's Tech Blog
June 10, 2010 at 10:55 am
Blogsphere Weekend Read [2010-06-12] « Zero Hour Sleep
June 13, 2010 at 1:20 am

{ 6 comments… read them below or add one }

Thomas Dorn January 25, 2011 at 9:26 am

Great Articel, it helped me a lot! Thanks.

Reply

Mike Pfeiffer January 25, 2011 at 11:36 am

Thanks! Glad you found it useful.

Reply

Gulab May 19, 2011 at 1:24 am

Awesome, You the man Mike :)
I am wondering what it takes to be Mike Pfeiffer!

Reply

Mike Pfeiffer May 19, 2011 at 10:44 am

Hey Gulab, thanks for stopping by :)

Reply

Pedro November 11, 2011 at 6:04 am

Hello,

What Exchange build version you use?

Reply

Mike Pfeiffer November 12, 2011 at 5:24 pm

I wrote this post during the Exchange 2010 SP1 beta, and these examples were based on that. Should be the same as SP1 RTM.

Reply

Leave a Comment

Previous post:

Next post: