Account disabled

Amar Patel [MSFT] 0 Reputation points Microsoft Employee

I have a customer account on AAD that is in a "disabled" state, and I can't figure out how to reenable, or how to find someone with permission to do it. I routinely add customers, and this is the first time one has ended up in a disabled state that I can't fix.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,715 questions
{count} votes

2 answers

Sort by: Most helpful
  1. anza 356 Reputation points

    it depends if the account is synchronized from on-premises or not

    or use powershell (AzureAD module)
    'Set-AzureADUser -ObjectID -AccountEnabled $true'

    if you use risk based policies you additionaly need to first remediate the risk that blocked the user sign-in


    0 comments No comments

  2. Dillon Silzer 46,211 Reputation points

    You can try using Graph API:

    Import-Module Microsoft.Graph.Users
    $userId = ""
    $params = @{
    	accountEnabled = true
    # A UPN can also be used as -UserId.
    Update-MgUser -UserId $userId -BodyParameter $params

    If this is helpful please accept answer.

    0 comments No comments