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 Pages / Allowing other user/co...
Power Pages
Unanswered

Allowing other user/contact to see data

(0) ShareShare
ReportReport
Posted on by 4

Default

The Portal User is a contact in Dataverse. By default, the portal user can update his details that are available under my profile section. The user does have the default functionality to see data that are associated with another contact if both contact belongs to the same Account.

 

Scenario

User A (Doctor)

User P (Patient 1) 

User Q (Patient 2)

User R (Patient 3)

User X (Father of User P)

User Y (Mother of User Q)

User Z (Legal guardian of User R)

In the system, all the users are Contacts and they have access to data that are related to their profile (as Contact) 

All the users are linked to each other using Connection Roles (OOB Functionality)

 

Question

How to configure Portal Security so that below data visibility is possible. 

Doctor (User A) can see data associated with all the patients (User P, User Q, and User R)

Patients (user P, User Q and User R) can see their data only. 

User X can see his own data + User P's data

User Y can see his own data + User Q's data

User Z can see his own data + User R's data

Categories:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    I wouldn't recommend using "Connections" within Dataverse, the proper way to associate the data in the back-end is via Relationships.

     

    Power Pages security model will allow you to secure the data via Web Roles + Table Permissions to solve your problem, but first you need to make sure you have the proper relationships setup.

     

    Example:

    • Doctor has a Web Role "Doctor"
    • Patents have a Web Role "Patient"
    • Contact table has a self-relationship representing Patients associated with a Doctor
    • Using table permissions you will configure then accordingly 
  • Daivat Vartak (v-9davar) Profile Picture
    4 on at

    Hello Oliver,

     

    In my case, Doctors, patients and relatives are contacts and linked with each other using connection roles. 

     

    Can I use N:N relationship to map the records and use the same to set filtering and display in power pages? 

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    The underlying security model of the portal is heavily tied to the Relationships (1:N, N:N) between Tables.

    You will want to make sure you have distinct relationship for the Doctor-Patient, and another one for Parent-Patient, The portal supports both 1:N and N:N relationships (if using N:N you can either use the out of the box, or create what is known as a 'manual' N:N - where you create the intersect table by adding a Lookup to each respective table).

     

    Edit: and as per Olivers original post, avoid Connection Roles with the portal.

     

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard