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 :
Microsoft Dynamics CRM (Archived)

How to set security around views and what form opens up?

(0) ShareShare
ReportReport
Posted on by 26

I have a entity that has 2 forms on it.  I have granted security permissions for each form.  Now I am wondering how to make it work so that when a user logs into CRM and is part of a certain security role, to make the form that I want to appear by default for them?

Then, I also need to show only certain views to this security group as they are not supposed to see other views that are already there.

Can this be done, if so how?  Thank you for your time.

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    You can associate a form with one or more security roles. If you want to ensure that a particular form is displayed by default for members of a security role, then associate the form with that security role, and give it the highest precedence.

    There is no equivalent means to restrict access to views. The only options you have are:

    1. Make the views personal views, and share them only with users (or teams) who should be able to access them
    2. Write a plugin on a pre-event of the RetrieveMultiple of the savedquery entity. This could check the user's roles, and remove views from the results if the user doesn't have permission on them

    Option 1 is hard to manage, and option 2 has noticeable development effort. I'd question why you need to restrict access to views; if you're trying to use views as a security mechanism, then it is easy to bypass by other means

  • USA80 Profile Picture
    26 on at

    Some people are worried about if this other group can see different views then they can get at other records and possibly make changes/mistakes on records that they shouldn't be touching.

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    This may be very late for changing your whole security model. You have to choose either one of the above options David recommended, if the views are the way to go.

    Otherwise, design Dashboards with only those system views they should see (Because Dashboards can be controlled by Security roles). Get rid of Entity views landing page from navigation.

    Still I agree a lot of user training involved. And hiding from other places like Adv. find etc.

  • USA80 Profile Picture
    26 on at

    We have talked the users our of doing this and going a different route.  Thank you all for your input.

  • Arun Vinoth Profile Picture
    11,615 Moderator on at

    You can share the "different route", so that may help other members if they happen to see this thread.

  • USA80 Profile Picture
    26 on at

    We went down the path of just doing a dashboard and creating views there to set the security.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans