msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Feature request : Add-MgApplicationPassword return the SecretText in plain text

Open syedhamjath opened this issue 3 years ago • 3 comments

Below command returns the password in plain text.

(Add-MgApplicationPassword ...).PasswordCredentials.SecretText

  1. It would helpful if the secret can returned in secure string.
  2. Also add switch -SecretAsPlainText to return secret text as plain text.

This help all scenarios so that one can get secret as secure sting and also in plain text.

syedhamjath avatar Feb 14 '23 13:02 syedhamjath

My team would find this helpful as well, we're currently getting a security alert for using ConvertTo-SecureString -AsPlainText -Force but as far as I can tell we don't have any other options if the password is only returned as plain text.

pownkel avatar Jun 28 '23 22:06 pownkel

@CarolKigoonya Do we want to implement it given it would be a breaking change?

petrhollayms avatar May 27 '24 19:05 petrhollayms

Adding this issue to be tracked for the next major version

CarolKigoonya avatar May 28 '24 09:05 CarolKigoonya