Default Roles

R.J. Gravel asked on December 31, 2020 05:04

Greetings!

We are in the process of cleaning up roles across our three websites. We have deleted all of the CMS default roles, but see the following still in our list:

  • Authenticated
  • Everyone
  • Not authenticated

Is it OK to delete these roles? Or will doing so create an issue? Given that there is a trash can next to each role, I assume it is OK to delete it?

Enjoy the rest of the day!

R.J.

Recent Answers


Juraj Ondrus answered on January 1, 2021 08:48

Those are generic roles. I would not recommend deleting them - it could make some permissions check complicated. e.g. you want to allow access to some pages for users who are logged in - so you will use the generic "Authenticated users" role which covers all logged in users and so on.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 4, 2021 17:53

These were also removed in K12, but i find them valuable to be honest. If you do wish to keep using these into K12, you may want to use the Generic user Roles module on the marketplace.

0 votesVote for this answer Mark as a Correct answer

R.J. Gravel answered on January 5, 2021 02:37

@Trevor - We are on v12. Do you think they can be deleted? Perhaps they are just a part of the site's legacy pre-update?

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 5, 2021 03:45

If you are on 12 portal you may want to hold onto them. If you are on 12 mvc they aren't needed and you are pretty safe removing, but with all things backup before doing this and test!

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 5, 2021 05:11

For MVC development model they are not needed since the generic roles were most helpful for configuring permissions for the live site - while in MVC you handle this in the MVC app code on your own. I would keep them for portal engine site. Why do you want to delete them? If they are in the system, nothing happens. And in case you will decide to add some ACL permissions in the future, they could be handy.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.