Forum Discussion

hongwoo_jin's avatar
hongwoo_jin
Brass Contributor
Jul 26, 2022

how to automatically disable user on aad when users not signed in 30 days on hybrid azure ad joined

Hi, 

Anyone who knows how to automatically disable user on aad when users not signed in specific days from aad?

It is easy to make and handle on on-premise active directory using powershell with scheduler, but I don't know in aad environment. 

 

We made up a hybrid azure ad join environment , there are two kinds of users. 

All users are syncing from on-prem server using aad connect. 

One is hybrid azure ad joined users who joined on-prem at first. 

Another is azure ad joined users.  

 

Hybrid azure ad joined users , we can easily manage their accounts even if they cannot sign in specific days using some script with scheduler checking using lastlogontimestamp.

But Azure ad joined users are not like this, someone suggest using azure automation account with microsofth graph api, is that right?

 

Resources