{"id":14255,"date":"2017-09-05T17:07:12","date_gmt":"2017-09-05T17:07:12","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=14255"},"modified":"2019-02-14T20:23:28","modified_gmt":"2019-02-15T03:23:28","slug":"role-based-access-control-in-asp-net-mvc","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/role-based-access-control-in-asp-net-mvc\/","title":{"rendered":"Role Based Access Control in ASP.NET MVC"},"content":{"rendered":"<p>In this post, Premier Developer consultant<span>\u00a0<a href=\"https:\/\/theniceweb.com\/\">Lizet Pena De Sola<\/a><\/span><span>\u00a0explains Role Based Access Control in ASP.NET MVC<\/span>.<\/p>\n<hr \/>\n<p>Role Based Access Control in MVC is pretty straight forward. There is also a way to do claims access control, but the most common way is based on roles. To show or hide action links in a view depending on the user role we can use the following Razor syntax on your Views:<\/p>\n<p>Read the rest on Lizet Pena De Sola&#8217;s blog<span>\u00a0<\/span><a target=\"_blank\" href=\"https:\/\/theniceweb.com\/archives\/386\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, Premier Developer consultant\u00a0Lizet Pena De Sola\u00a0explains Role Based Access Control in ASP.NET MVC. Role Based Access Control in MVC is pretty straight forward. There is also a way to do claims access control, but the most common way is based on roles. To show or hide action links in a view depending [&hellip;]<\/p>\n","protected":false},"author":583,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[80,96],"tags":[67,58],"class_list":["post-14255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-security","tag-asp-net","tag-security"],"acf":[],"blog_post_summary":"<p>In this post, Premier Developer consultant\u00a0Lizet Pena De Sola\u00a0explains Role Based Access Control in ASP.NET MVC. Role Based Access Control in MVC is pretty straight forward. There is also a way to do claims access control, but the most common way is based on roles. To show or hide action links in a view depending [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/14255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/583"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=14255"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/14255\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=14255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=14255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=14255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}