Application Credential update

Nikita Krivets 481 Reputation points


I have an Application. It has an Application Permission set (Directory.Read.All). It has a client secret set.

So, is there a way to update password credentials or generate a new client secret without any delegated permissions AND without Application Permission - Application.ReadWrite.All?

Something like Application.ReadWrite.Self.

Thanks in advance!

Perhaps, @Vasil Michev , you know any way to perform something like this?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,081 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,756 Reputation points Microsoft Employee

    @Nikita Krivets , I believe you can use the following PS cmdlet to create a new App Secret:

    $startDate = Get-Date  
    $endDate = $startDate.AddYears(3)  
    $aadAppsecret01 = New-AzureADApplicationPasswordCredential -ObjectId {objectID of the registered application} -CustomKeyIdentifier "Secret01" -StartDate $startDate -EndDate $endDate  

    Do let me know if this helps. Also, if this helps in answering your query, it would be great if you can mark this response as "Answer", so that it helps others in the community too.