Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Error Message: Variable Not Saving Properly - User Unauthorized to Read Secrets from a Specific Resource (Environment variables)

(2) ShareShare
ReportReport
Posted on by 4

image.png

I encountered the following error while attempting to save a variable in my Power Automate flow:

This variable didn't save properly. User is not authorized to read secrets from ####

I've ensured that there have been no recent changes in Azure related to permissions or configurations. Therefore, it's unlikely to be related to any recent updates.

Has anyone else experienced this issue before? I'm looking for suggestions or insights on how to resolve this problem. Any ideas or troubleshooting steps would be greatly appreciated.

Thank you in advance for your assistance!
Amjad

  • billkan Profile Picture
    10 on at
    Re: Error Message: Variable Not Saving Properly - User Unauthorized to Read Secrets from a Specific Resource (Environment variables)

    met all the requirements from the doc and still the same error, what should i provide you to fix this

  • TomaszPoszytek Profile Picture
    170 Most Valuable Professional on at
    Re: Error Message: Variable Not Saving Properly - User Unauthorized to Read Secrets from a Specific Resource (Environment variables)

    Hi, according to Use environment variables in solutions - Power Apps | Microsoft Learn MS recently change security roles that Dataverse app must be granted in Azure Key Vault. It used to be Key Vault Reader, now it is Key Vault Secrets User. 

    Also, make sure under Permission model you have "Azure RBAC" selected.

    And finally - make sure, the user who is importing a solution or creating the variable is also granted Key Vault Secrets User in the related AKV. I noticed in my case, that despite my account was an owner, I had to additionally grant myself the mentioned above role in order to make the whole setup work.

     

    Regards,

    Tomasz

  • Likefire Profile Picture
    3 on at
    Re: Error Message: Variable Not Saving Properly - User Unauthorized to Read Secrets from a Specific Resource (Environment variables)

    I think it's issue of the platform. Now we have the same trouble but a couple weeks ago everything was fine.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow