<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'role'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=role&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'role'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Populate a drop-down with a list of roles including RoleID</title><link>http://forums.asp.net/thread/3521478.aspx</link><pubDate>Thu, 19 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521478</guid><dc:creator>Edward0</dc:creator><description>&lt;p&gt;Although I&amp;#39;ve been using ASP.NET since it came out, I&amp;#39;m new to 3.5, and completely new to aspnet_membership.&lt;/p&gt;
&lt;p&gt;My project must make use of the Membership API and I&amp;#39;m happy with this.&amp;nbsp; There will only be ten to twenty users of the system, and there will only be two roles.&amp;nbsp; No user of Role &amp;quot;A&amp;quot; will be a user of Role &amp;quot;B&amp;quot;, and vice versa.&lt;/p&gt;
&lt;p&gt;So, in contrast to the data model, there will be a 1:1 relation between aspnet_Users and aspnet_Roles.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently designing a User edit form, and I wish to expose a drop-down list of all roles available in the application.&amp;nbsp; When the form is saved, I want to write a record to the aspnet_UsersInRoles to store the UserID and the RoleID.&lt;/p&gt;
&lt;p&gt;I want to use the Membership API to get the data for the form, drop-downs etc.&amp;nbsp; The Roles.GetAllRoles only returns a string array, whereas I want a list or hashtable - e.g.&lt;/p&gt;
&lt;p&gt;RoleID - RoleName&lt;/p&gt;
&lt;p&gt;What is the correct approach to do this?&amp;nbsp; Should I extend the Membership provider, or what?&amp;nbsp; I can&amp;#39;t believe I&amp;#39;m the first developer who needs to populate a DDL in this way!&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item><item><title>MvC 2 Role management membership problum? </title><link>http://forums.asp.net/thread/3450936.aspx</link><pubDate>Fri, 09 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3450936</guid><dc:creator>usmi123</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Am using new framwork&amp;nbsp;Mvc2&amp;nbsp;and&amp;nbsp;am stuck in using the role management (&amp;nbsp;by&amp;nbsp;using the builtIn feature) how do i get solve this problum ??&lt;/p&gt;
&lt;p&gt;am using default Db &amp;quot;aspnetDb&amp;quot; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Extend Role model to support personalization?</title><link>http://forums.asp.net/thread/3445089.aspx</link><pubDate>Wed, 07 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3445089</guid><dc:creator>maxi_ng</dc:creator><description>&lt;p&gt;&amp;nbsp;I am aware of the web parts control. But that may not fit what I need.&lt;/p&gt;
&lt;p&gt;I am trying to extend the role model of ASP.NET. I read some chapters of a book and that is absolutly feasible.&lt;/p&gt;
&lt;p&gt;But I am missing out something, hope someone could tell me where to look.&lt;/p&gt;
&lt;p&gt;A Role will have a collection of principles (maybe I misunderstand it) and principles define what a role can or can not do.&lt;/p&gt;
&lt;p&gt;I am using a MS SQL backend. Both RoleManager and Membership providers are using that Database.&lt;/p&gt;
&lt;p&gt;My question is, I don&amp;#39;t understand what a principle is, it didn&amp;#39;t appears in the Database Schema.&lt;/p&gt;
&lt;p&gt;And if I modify access rule in ASP.NET administration tool, it save a rule inside web.config.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I am trying to do is to show controls depending on user role.&lt;/p&gt;
&lt;p&gt;For example a menu or a treeview, different users will see different subset of items.&lt;/p&gt;
&lt;p&gt;And that setting information will be store inside my database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please show me where to dig. Thank you&lt;/p&gt;</description></item><item><title>Where is the Roles table?</title><link>http://forums.asp.net/thread/3432034.aspx</link><pubDate>Tue, 29 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3432034</guid><dc:creator>brccosta</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;m using Membership and I can&amp;#39;t find the Roles that I put in my users. The table &amp;quot;aspnet_Users&amp;quot; are Null rows.&lt;/p&gt;&lt;p&gt;Where is the Roles informations?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>New Role Problem</title><link>http://forums.asp.net/thread/3426074.aspx</link><pubDate>Fri, 25 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3426074</guid><dc:creator>Ben Aminnia</dc:creator><description>&lt;p&gt;I have an existing asp.net app which already has 100+ users and 10 roles.&amp;nbsp; However, I just created a new role, but despite restrictions in web.sitemap, a user with this new role can see the entire site without restrictions.&lt;/p&gt;</description></item><item><title>Using AuthorizationStoreRoleProvider</title><link>http://forums.asp.net/thread/3111866.aspx</link><pubDate>Wed, 22 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3111866</guid><dc:creator>Rooboy</dc:creator><description>&lt;p&gt;When I try to use the AuthorizationStoreRoleProvider I get an error saying&amp;nbsp; &amp;quot;The authorization store component is not installed ---&amp;gt;&amp;nbsp; System.IO.FileNotFoundException: Could not load file or assembly &amp;#39;Microsoft.Interop.Security.AzRoles, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;#39; or one of its dependencies. The system cannot find the file specified&amp;quot;&lt;/p&gt;&lt;p&gt;Other people with similar errors have been told to install some Administrative Tools pack but I don&amp;#39;t see why this should be necessary.&amp;nbsp; Shouldn&amp;#39;t this be included with the .net framework classes?&amp;nbsp; Would I have to install this on all client machines?&amp;nbsp; People have complained about problems when they&amp;#39;ve included the interop in their bin directory.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement different access levels within the same Role</title><link>http://forums.asp.net/thread/3098399.aspx</link><pubDate>Fri, 17 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3098399</guid><dc:creator>vialetti</dc:creator><description>&lt;p&gt;Hello all.&lt;br /&gt;I am about to develop a web app for managing information that is grouped into different areas or departments, and each one should have an administrator.&lt;/p&gt;
&lt;p&gt;I am going to create the following roles using the ASP.NET Forms Roles and Membership providers: &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Super Admin&lt;br /&gt;Group Admin&lt;br /&gt;Regular User&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Group Admin and Regular User need to have access to the information only in their own groups.&lt;/p&gt;
&lt;p&gt;For example, if the groups are: London, Berlin, Rome, then the Rome people should see only the Rome information, and have NO access to London and Berlin information.&amp;nbsp; The different groups are going to be created by the Super Admin. When a new group comes in he creates it, and then creates the admins and users for it.&lt;/p&gt;
&lt;p&gt;The roles describes above solve the problem of having different access to certain web pages, but I still don&amp;#39;t have a way to distinguish if they belong to London or Berlin or Rome.&lt;/p&gt;
&lt;p&gt;So, for this, I am creating fields in my database tables.&amp;nbsp; For example, I have one table called &amp;quot;Contact&amp;quot; which holds the contacts for every group, that table looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;ContactId&lt;br /&gt;First name&lt;br /&gt;Last name&lt;br /&gt;Phone&lt;br /&gt;Address&lt;br /&gt;GroupId&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In &amp;quot;GroupId&amp;quot; I will save the Id of the group that contact belongs to (London, Berlin, or Rome).&lt;/p&gt;
&lt;p&gt;And for the Users I will have to create a Profile table of my own and link it to the Membership users, so I can save this extra info for each user:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;GroupId&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In that field I will save the Id of the group that user belongs to.&lt;/p&gt;
&lt;p&gt;In the contact and contact admin web pages I will run a check at the first of the code behind that checks the current logged in user&amp;#39;s Group Id and then show only his contacts.&lt;/p&gt;
&lt;p&gt;Ok this is the general Idea of my problem and my suggested solution.&lt;/p&gt;
&lt;p&gt;I am posting this because I keep wondering if it is the right way to do it or should I create the following Membership Roles:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Super Admin&lt;br /&gt;London Group Admin&lt;br /&gt;Berlin Group Admin&lt;br /&gt;Rome Group Admin&lt;br /&gt;London Regular User&lt;br /&gt;Berlin Regular User&lt;br /&gt;Rome Regular User&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;My fear of doing so is that I will end up with dozens of roles after a while. And that I will have to create tools for changing the Membership Roles dynamically, is that recommended, safe, etc?&lt;/p&gt;
&lt;p&gt;What do you think?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>help//login Control</title><link>http://forums.asp.net/thread/2973142.aspx</link><pubDate>Sat, 28 Feb 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2973142</guid><dc:creator>tp1212</dc:creator><description>&lt;p&gt;im working on a website in C#. i have 3 types of people in the site: Customer, Worker and Manager.i have a database and thereis all the info about those types of people. im not using the database that is automatic you get. now how can i do roles in sites so i could manage the page for each person?&amp;nbsp; Moreover, &amp;nbsp;how can i do it from one login control?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Extending Role Provider</title><link>http://forums.asp.net/thread/2922824.aspx</link><pubDate>Fri, 06 Feb 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2922824</guid><dc:creator>monkeylee</dc:creator><description>Hi All,

I have started work with the membership providers and roles, I want to use the standard sql based role provider but it only stored the role name, id and app name, is there a way to add an additional field forexample section that I can access for the provider api? or do I need to implement a custom role provider, if so is the above still possible? and can I get/use the code for the default sql role provider for the standard methods such as isUserinrole etc

Any direction would be appreciated

thanks

Lee</description></item><item><title>User design</title><link>http://forums.asp.net/thread/2865390.aspx</link><pubDate>Tue, 13 Jan 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2865390</guid><dc:creator>mickyjtwin</dc:creator><description>Just looking for some advice on membership/roles/profiles.

Requirement is for approx 5 roles, e.g. Admin, Account Manager, Dealer, Branch. Each role will have a different set of profile information attached. Also, dealers will be created by an account manager, will needs to be stored and reported on. Not sure the best way to set this up. 

- Have the profile table set up with all the fields regardless of role, then on that roles editing page, get/set the profile custom from there(this would sit in the presentation layer). Profile would also contain the parent userId for mapping, or create a link table with userID and parentUserId. This would be then mapped by a user class(interface).

- Do not use the profile table and set up a separate table for each role profile instead. Create a user interface and then each role would have it&amp;#39;s own class implementation. 

As there are a set number of admin tabs and each function is directly tied to a role, checking security based on role is all that is required. My main concern is the initial architecture, and tying that in with the .net membership/role/profile providers. 

Thanks in advance,

Mick</description></item></channel></rss>