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 / Permission Issue to cr...
Power Pages
Answered

Permission Issue to create a comment by specific Web Roles

(0) ShareShare
ReportReport
Posted on by 13

Hi all,

 

I have created a power portal in which I need a conversation entity that stores all the comments entered by ticket owner, admin and team member.

 

For achieving the same , I tried to use Portal comments but I received the below error for a particular role called team member web role who upon assigned a ticket would have to create a comment.

 

Then I removed Portal comments and created a custom table called Conversations to circumvent this, however receiving the same error when the web role team member tries to create a record.

 

vivek_murali_0-1640168264999.png

 

The conversations view will be visible in a subgrid in a tab under the main form with the Mode Type : Edit

 

vivek_murali_1-1640168412391.png

Have managed the Add button in the list from which this form will be invoked. On top of everything , the ticket owner access which is basic , is not even able to see the conversation option at all.

 

I have given Global table permissions for Conversation form.

 

vivek_murali_2-1640168467974.png

 

 

Please help in decoding this error. 

 

It is critical.

 

Thanks , Vivek.

 

Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @vivek_murali ,

    may be you already checked, but usally this message is right 🙂

    I go to the entitytableprmissions and set up a permission for the table. If it is a custom one with text in a multilinbe field, create and edit and read should be sufficient. As this entity will be linked to something, you also have to give append and appendto rights (i will never get which is what direction) on that entity and may be on the entity to which you are linking to.

     

    So, if you have that tablepermission(s) and that permission(s) is(are) assigned to a webrole the user is assigned to or to the anonymous role, if no user is logged in for that, it should work.

     

    This i would check.

     

    Additionally, when you create notes/attachments you also have to give rights to that tables, too.

     

    Does this help or did you already ensure all of it?

    Have fun,

      Christian

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @vivek_murali 

    Try the following steps 

    In portal management: 

     

    If you plan to use portal comments 

    1. Add the "annotation" table in table permission and give appropriate permissions. Make sure the scope is global 

    ragavanrajan_0-1640212223830.png

     

    2. Important step: Once you created the table permission> hit save> then scroll down until you see web roles. Click add existing web role 

     

    ragavanrajan_1-1640212325711.png

     

    3. Hit save and close 

     

    Note: The same approach is also applicable to your custom table. 

     

    In Portal studio: 

    1. Syn config > Browse the website and hit ctrl + F5 

     


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Vivek_Muralidharan Profile Picture
    13 on at

    Hi Christian,

     

    Yes I did everything that you have mentioned. In fact , I have given Global permissions for the custom table that I have built.

    vivek_murali_0-1640223916962.png

     

    And I have given all the web roles that I use in the portal to access this table. 

     

    Still no luck. 

     

    Thanks .

  • Vivek_Muralidharan Profile Picture
    13 on at

    Hi Ragavan,

     

    Yes I have done everything that you have mentioned. I have given Global access to Annotation table and also the Custom table that I have built.

     

    vivek_murali_1-1640224248517.png

     

    The addition of comments works with only the IT Administrator that I have given because it has Global access to the main table that I use for the project where as for other roles Global access to main table is not given. If I give access , then everyone will be able to see everything in the table.

     

    Thanks, Vivek.

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @vivek_murali ,

    well, global access should only be given in certain situations. But the users who should access the data have to have some rights to do so. As the contact must not be directly associated with an entry in your table, may be the account of the contact is a suitable way to give permissions (so, accountscope would be an idea), And evertytime an entry is created in that table an attribute is to be filled with the account of the contact. From portalside its a simple metadata entry, from dynamics side you would have to apply some code (flow or plugin, whatever you prefer)

     

    If all else fails you could create a linking relation or even entity between contact and the to be permissioned entity and use that as a contact relation (or a parent-child rule in case of entity). I do this in situations where its not clear, who should see what. Then i write some code (i prefer plugins 🙂 ) to maintain the linking entity and that code carries the "visibility" logic .

     

    So, may be it helps lighting up the area and solving the issue,

      Christian

  • Verified answer
    Vivek_Muralidharan Profile Picture
    13 on at

    The issue got resolved when I disabled the table permissions to the custom entity and the custom form . Guess it is the only solution available to resolve the issue.

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
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard