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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Encrypt and dec...
Power Apps
Unanswered

How to Encrypt and decrypt password field of contact entity?

(0) ShareShare
ReportReport
Posted on by 121

Hello,

 

I have a web application, from where I am creating contacts, the Contact details are stored in the Contact entity of CDS.

I need to change the password of the particular contact from the canvas app in power apps.
What are the ways to change the password of contact from the canvas app??

I tried changing the password using the below code.
Patch(Contacts,LookUp(Contacts,Email = "myemailaddress@gmail.com"),{'Password Hash':"NewPassword"})


Now Password of the contact is getting updated. but it is not in the encrypted format. It is getting saved in normal text format.

and when I am using the updated password to login to the application, It is throwing error as shown in the attachment.

 

Please check the attachment for the login error using the updated password.

 

I need help on How to save the updated password and use the same updated password for next time logging in.

 

Quick Help is really appreciated!!!

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    so you are using the local security option for a power apps portal.

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/set-authentication-identity

     

    the recommendation is you don't use local security option--it is deprecated. 

    You should switch to Azure B2C or some other external security provider.

     

    If you need to use the local security option, you can't just update the field. It won't work that way

    See this thread and Nick Hayduk's answer https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/283515/the-portal-user-s-password-encryption-type/811085

     

     

  • praneshJ Profile Picture
    121 on at

    Hello @jlindstrom,

     

    Thank you for the solution.

     

    I have one more question, If I don't want to use any Azure B2C or some other external security provider.

    but still, I want to update the password of the contact using local security.

    Is there any other way to do that?

    Can we use power automate by creating any type of workflow that updates the password in CDS???

     

    or any other workarounds for this help me in updating the password of Contact in CDS.

     

    Any help is really appreciated!!!!

  • Joel CustomerEffective Profile Picture
    3,224 on at

    You would need to use some kind of action or plugin as described in the thread I linked to.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard