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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

how to restrict "open a new case" in powerapps customer self service portal ?

(0) ShareShare
ReportReport
Posted on by 45

Scenario : In the 1st picture in portal i have to write a code using liquid or javascript code in which only admin has a open a new case access and other users do not have a open a new case when other users are logged in it should show them that they cannot create any case how this can be achieved using powerapps ?

I have used liquid script hereby attaching the code , i created the web roles and new web template in new web template i have written the code 

7802.Screenshot-_2800_411_2900_.png

{% if user.roles contains 'Administrators' %}
    {% open a new case: 'Entity Form with Button' %}
{% else %}
    {% open a new case: 'Entity Form without  Button' %}
{% endif %}

After creating web roles and creating web templates what steps do i need to follow , can anyone help resolve my query ?

Thanks & Regards,

Ainee Ahsan

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    on at

    Hello, the permissions work as follows:

    + docs.microsoft.com/.../webpage-access-control

    - docs.microsoft.com/.../webpage-access-control

    - docs.microsoft.com/.../webpage-access-control

    I don't know if it will be possible to do it as it is raised.

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 185 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans