AzureAD/MS Graph User Expire Password

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AzureAD/MS Graph User Expire Password

L1 Bithead

Anyone familiar with MS Graph User integration and using it to expire a password for a user, much like Active Directory Query V2 "!ad-expire-password"?

 

It appears the method with PowerShell is using Connect-AzureAD and updating the passwordProfile attribute.  But haven't had a successful test with !msgraph-user-update when trying to update that attribute.

 

"passwordProfile": {
    "password": null,
    "forceChangePasswordNextSignIn": true,
    "forceChangePasswordNextSignInWithMfa": false
}

 

 

1 accepted solution

Accepted Solutions

L1 Bithead

Didn't see this as an option in the Azure Active Directory Users integration.  This is the solution:
!msgraph-user-change-password force_change_password_next_sign_in=

View solution in original post

2 REPLIES 2

L1 Bithead

Something like....

!msgraph-user-update user="jane.doe@domain.com" updated_fields=`PasswordProfile=@{'forceChangePasswordNextSignIn'=$true}`

But this fails due to the extra equals sign I believe:
Reason

too many values to unpack (expected 2)

L1 Bithead

Didn't see this as an option in the Azure Active Directory Users integration.  This is the solution:
!msgraph-user-change-password force_change_password_next_sign_in=

  • 1 accepted solution
  • 1388 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!