Application Credential update

Nikita Krivets 496 Reputation points
2020-01-22T14:06:18.36+00:00

Hello,

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.
25,062 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,831 Reputation points Microsoft Employee Moderator
    2020-01-23T16:38:35.43+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.