You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script removes all credentials from a service principal.
SAML Apps
This script can also be used to remove credentials for SAML apps. It's important to clear the passwordCredentials for SAML apps since the self-signed signing certificate is composed of the keyCredential object and the passwordCredential object which are added to the servicePrincipal.
# Delete credentials of service principal$servicePrincipalId='c6c64515-9c2c-4458-830d-fda30f7f55b5'$body=@{
keyCredentials=@()
passwordCredentials=@()
}
Update-MgServicePrincipal-ServicePrincipalId $servicePrincipalId-BodyParameter $body
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This script removes all credentials from a service principal.
SAML Apps
This script can also be used to remove credentials for SAML apps. It's important to clear the passwordCredentials for SAML apps since the self-signed signing certificate is composed of the keyCredential object and the passwordCredential object which are added to the servicePrincipal.
Beta Was this translation helpful? Give feedback.
All reactions