question

FaizanChaudhary-7843 avatar image
0 Votes"
FaizanChaudhary-7843 asked ·

Auto Licenses assignment to new user in Azure AD

Hi All,

I am newbie to "Office 365 admins" and still learning things. Not sure my question would make sense.

Background : Our on premises AD DC is connected to Azure services. When we create user account here in AD, It sync to Azure Active Directory Admin Center which takes around 15-30 mins. then we assigns basic licenses manually.

My Question : I want that whenever we add account and it gets sync on Azure AD, I could get some alerts ,( Which I already tried on "O365 security and compliance > Manage alerts > User added > sent me on my email with this condition" but didn't get email alerts) So that I could automate these basic tasks via Azure automation (Power shell scripts) When I receive e-mail alerts . Could someone please help me on this or another way to do that.

Note : Alerts not important but auto assignments of licenses when new user appears in AAD is my requirement. Any way to do that.

A big thanks in advanced.

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LukasBeran avatar image
0 Votes"
LukasBeran answered ·

So you have Azure AD Connect that does the sync for you. Sync cycle by default starts every 30 minutes. Then the selected objects (based on some config) are synced to Azure AD which is the identity provider for all MS cloud services.

What you need to do is to create a user group, sync this group to Azure AD and place your user accounts in our onprem AD to this group. And in Azure AD, configure Group Based licensing (the provided by JulienGoindin-666), so all users that are members of the group get selected licenses automatically. This is the recommended way, don't do any magic with PowerShell :-)

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hahaha

Thanks Lukas, I will try the steps you have shared. I hope it fulfill my requirements. Else I was to automate my own things that would have never happened :-p .

0 Votes 0 · ·
JulienGoindin-666 avatar image
1 Vote"
JulienGoindin-666 answered ·

You could check that:

https://docs.microsoft.com/fr-fr/azure/active-directory/users-groups-roles/licensing-groups-assign

It's for provide automaticaly a licence to a user in a group

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.