microsoftgraph / microsoftgraph/msgraph-sdk-powershell
Update-MgUserPassword expects password as a string value
Open
@timayabi2020 is already working on this.
Since Feb 20, 2025.
Needs: Team Discussion
PM: Review
Question: API
Question: SDK
type:security
- Dominant language
- C#
- Stars
- 898
- Forks
- 230
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 31
Description
Describe the bug
The Update-MgUserPassword command's parameters, -CurrentPassword and -NewPassword, expect a string value instead of a securestring value.
Expected behavior
Password-related parameters shouldn't expect string values.
How to reproduce
Get-Command Update-MgUserPassword -Syntax
SDK Version
No response
Latest version known to work for scenario above?
2.25.0
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.