Reset your own password through Azure CLI
Open
Account
act-identity-squad
feature-request
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Hello,
As part of our project, we would like to reset the password of the logged-in account in an Azure DevOps pipeline.
The logged-in account does not have azure ad user administration privileges and we would not want to grant it that permission.
Is there a way of resetting your own password using Azure CLI?
ex:
`az login -u "exampleUser@exampleDomain.com" -p "VerySecurePassword567"`
`$objectId = az ad user show --id "exampleUser@exampleDomain.com" --query "objectId" --output tsv`
`az ad user update --id $objectId --password "AnotherSecurePassword234" --force-change-password-next-login false`
Contributor guide
Assessment
This issue has not been assessed yet.