You need to have a look at PowerShell
Hi,
Are there any Office 365 gurus on here that can help me with a little problem? We've just been transferred from RM Easymail to Office 365 by SWGFL and i'm trying to sort out the permissions. I wanted to lock down some of the settings for the students but not for staff (changing display names etc) I understand those permissions can be set in the user role assignments so i've created a student user role, but is there an easy way to assign it to a group? The only way i've found to do it so far is to assign the role to a mailbox individually through the web portal.
Thanks
Jon

You need to have a look at PowerShell
I've used Powershell for most stuff but can't find the cmdlets to use to assign a user role to more than one user. Any ideas?

You can add administrator role groups to 'User Groups' 'Multiple Members' via the EMC. If that is what you are referring too...
What parts are you trying to lock down?
James.
Last edited by EduTech; 12th December 2012 at 01:30 PM.
I want to stop the students from creating distribution lists, changing their display name etc. I've gone into Roles & Auditing>User Roles> and created a role there with the stuff I want to lock down unticked, but I don't know how to apply that to the students other than going to their mailbox individually and changing their role assignment policy in mailbox settings. I could change the default assignment but then everyone would be locked down.

Ok, So if you do
Get-RoleassignMentPolicy | Select Identity
That will get your string, and then
Import-CSV C:\CSV | ForEach{Set-Mailbox -identity $_.EmailAddress -RoleAssignmentPolicy "Default Role Assignment Policy"}
Replace "Default Role Assignment Policy" with the name of your policy that you have created. (if there are spaces in your policy name, keep the quotes)
In the CSV make a column called EmailAddress, and then add the primary SMTP of the users you want to change.
That should do the trick.
:-)
James.
jonbd (12th December 2012)
Amazing, just what I was looking for, thanks very much!!

There are currently 1 users browsing this thread. (0 members and 1 guests)