web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to encrypt SQL con...
Power Automate
Answered

How to encrypt SQL connection password?

(0) ShareShare
ReportReport
Posted on by 11

Hi

Is it possible to encrypt the password ?

 

2023-08-25_16-59-31.png

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Store it in a variable and mark the variable as sensitive:

    Agnius_0-1692955128592.png

     

    This will prevent it from being viewed and logged in any way.

     

    The most secure way would be storing it in some password vault and making the flow retrieve it from the vault, instead of setting it in the flow itself.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • NINJA0210 Profile Picture
    11 on at

    Hi Agnius

    Thanks for you replay.

    Passwords can still be displayed if I share the Flow with others, Right?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If you set them via Set variable then yes, they can. If you retrieve them from some password vault and have the variable marked as sensitive, they won't be displayed.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • NINJA0210 Profile Picture
    11 on at

    There is a security issue if I share the Flow with SQL connection info to others.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Yes, there is, of course. It is thus probably better to build it in another way, in which the SQL query is executed separately from the rest of the flow.

    Also, if you were using SQL server, it would usually be recommended to make the flow use SQL stored procedures and not direct queries to the database. And then also only allow the user execute those procedures. This way you would at least know they will not be able to do anything else using the credential. But since you are using an MS Access database, that's not really an option.

    Alternatively, you could perhaps use Windows authentication instead of a username and password.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard