I guess not?
Apologies if this is somewhere else, I can't seem to find it (by all means post me a link if its easier!)
I have Office 365 all working the way I want it: SSO, Address Book Policies etc etc. However, when a new user is added to our Active Directory, they sync to O365 but are not assigned licenses. What is the easiest way to automate this? I can filter between staff and students via Powershell by querying the 'Office' attribute which I have set to 'Student' for the kids (if that helps?)
Is there anyway to do this that doesn't involve Powershell?
I guess not?
There are Microsoft partners who have built solutions for automating this, but there's nothing that's part of the service. You could write a PowerShell script that will largely automate it, but not fully.
The way that I have done this in the past looking at my notes us using the following script that I have created:
The script basically configures the location of the user, and also assigns the relevant SKU (license) to the user object.Connect-MSOLService
$AccountSkuId="Insert SKU Here"
Set-MsolUser -UserPrincipalName$_.UserPrincipalName -UsageLocation$UsageLocation
Set-MsolUserLicense -UserPrincipalName$_.UserPrincipalName -AddLicenses$AccountSkuId-LicenseOptions$LicenseOptions
I hope that helps.
Last edited by EduTech; 23rd May 2013 at 03:36 PM.
Cheers, I shall take a look at this and see what I can come up with.
As a slight aside, how do you make a .PS1 powershell script run as an administrator? Its not in the context menu when you right-click and I'm unable to make powershell commands work correctly unless I open the program as Admin.
Launch your Microsoft Online Services PowerShell Console as Administrator, browse to the Directory of the Ps1 Script and then run it.
Or, Just launch PowerShell as Administrator and just past the script in to the console :-)
Just wondering if you've seen this script? I've got it working nicely, running every hour to license any users that aren't assigned, and to warn if the license count drops below a certain threshold.
I'm about to write a post in my blog about getting it working (it's kinda poorly documented).
themightymrp (13th June 2013)
Looks very promising for what I want to achieve! Thanks for the link, I will modify it slightly to be able to differentiate between my student accounts and staff accounts and assign the license accordingly - but thanks again
As @themightymrp says, this really needs to be extended to fit into the education scenario, but the basic framework is a good starting point.
For what it's worth, the official method for automating licence assignment is here:
How to use PowerShell to Automatically Assign Licenses to your Office365 Users - TechNet Articles - United States (English) - TechNet Wiki
Sorry to resurrect this, but...
"# script to assign or swap the licenses of a user
#Copyright Microsoft @ 2012
#The sample scripts are not supported under any Microsoft standard support program or service.
So are there any plans for MS to add better provisioning to their 365 product and provide a way for auto assignment of licenses via the Office 365 control panel in the future, or to have it integrated in Azure AD Sync maybe?
There are currently 1 users browsing this thread. (0 members and 1 guests)