HiI'm building a web app in visual studio 2005 and I'm setting up a 'create user' page for the admin part of the app. I'm creating a customised CreateUserWizard so that I can add a user to the asp.net membership list (in database on my server) and also add some info to one of my tables (user first name, faculty they work for etc). I want to be able to let the admin user allocate roles (those already defined in my config) from a drop down list. I want to inculde this in my create user wizard, and have an 'update user' section where I can change their role the...create a user role to "create users"
Is it possible to create a user role so that i can assign users to create users. I don't want to give them access to the administrator role, just a role that will allow them to create new users.
You could work around that by placing a user account module on a page only accessible by the role in question.The original registration would then be turned off or set to private.I think that's the easienst way of dealing with your problemHope that helpsLeif
But if you add a Users Account module to a page, doesn't that just show the currently logged in user their details.
Is there something i am...allow registered users of a site, to create new users and manage their roles and passwords etc
Hi Hi All
Im looking for a solution which will allow registered users of a site, to
create new users and manage their roles and passwords etc, so that the
registered primary user becomes an administrator for the other users they
In short, I am not good enough to create this my self, so if anyone knows of
an off the shelf solution that exists, or what this type of thing is know
as so I can find it via a web search, I’d be most grateful as I’m not having
much luck so far
yes , there is somethi...How to implement registered user(s) predefine role when user register?
I would like to know how to implement a predefine role to users who register on the site without changing manually each role for the user.
Example: "All Users" is used even after the person registered on the site.
"Admin" has access to all.
So how would I go about implementing another role "AuthUsers" when Anonymous users enrolled on the site and immediately become "AuthUsers"?
I've simply added some code to my AddUser sproc that adds them to a specific RoleID. Here it is in its entirety:
CREATE Proced...Manage Users For This Role / Manage Roles For This User Question
In the roles/user management pages there is a link called Manage Users For This Role and Manage Roles For This User respectively. I want non Admins to be able to see these pages, and currently I have it so that they can see the manage users and manage roles pages. However, when a non admin clicks on Manage Users For This Role or Manage Roles For This User link it does not display the control, just an empty page. I can get around this by giving edit rights to the page, but I do not want them to have edit rights for the page. Any ideas?
...Create User control & User Roles
Hi there guys,
I would like to know if it is possible to assign a new user a user role without using the website admin tool. The scenario is i have got a 'create user' page in my site's admin section but all I can do is just create a user and not actually assign roles to that user. Is there some way I can tweak the create user control to assign a role or some other way to achieve this? (any code in VB please)
Thanks for the help
Hi Matt,You can use Roles.GetAllRoles() to get all role list and use Roles.AddUserInRole to add user in role.Ahmed Abu Dagga
Thanks for that Ahmed....Changing User Roles / Deleteing User Accounts
While creating my site i have been using the test server built within visual studio to test my site.
But now i want to upload my finished site but want to know how i can delete user accounts and set/change roles while it is online.
I have been doing this within the ASp.net config site, but when i upload it how am i to change these?
do i have to download the site off of the server and do it within VS or is there an easier way to do this?
you just need to download the aspnet.mdf file and use asp.net configuration tool to prepare the database , then you can upload the database to t...Creating a "user's page"
I would like to create a page in my intranet portal that would be for each specific user, sort of a personalized home page where they could add content and modules and order them according to their liking. I thought that I could just add a new tab for each user under the home tab and give them admin access to it, but I want it only available to them (ie. the user can only access the tab with their name on it: username = tabname).
The only way I can figure out how to do this is to create a role for each user and then limit their tab to their role. However, I have too many users to crea...create a default role for all new users (self-created registrations)
Is there a way to set a default role with the createuserwizard control? I only have 2 roles, and I want all content other than the admin folder to be available to anyone who is not anonymous.
(If the search was working on this site I probably would find what I am looking for... thanks!)
From Object browser I found this and tried to implement it like the following:
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser  ...a default role for users registering on my website
How can i set a default role for users who register on my website?
To assign a default role with the createuserwizard addProtected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs)
Default role is "WebUser"
You also need to add OnCreatedUser="CreateUserWizard1_CreatedUser" within the <asp:CreateUserWizard tag.
Hope it helpsRegardsJeremyIf this has helped Please: Don't forget to click "Mark as Answer" on the post that h...Problem : Get a list of user belonged to a role or to know if a user already has a role
What code can I write to know if a user belonged to a Role already ? and How can I get a list of a user already in an existing role ? Please have a look at my code below : Protected Sub AddUsers_OnClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddUsersToRole.Click' I wanna add some code here to check if a user already belonged to a Role' Please insert your code here. Thanks a lot. ' A role must be selected If RolesListBox.SelectedItem Is Nothing Then Msg.Text = "Please select a role." Exit Sub End If ...Programmatically place a user into a specific role upon create user
I would like to programmatically assign a user to a specific role when they create a user.
My create user method is 2 pages, one for the asp createuserwizard then postsback to a separate oage that collect user info like address and phone etc.
should I assign it in the create user wizard page?
or on the next page look up the user, then add user to role?
and How would I do this in VB
I read the tutorial on assigning roles but I don't want a page where users can assign their own role, althouh it was useful for admin, I want it done for them automatically.
Bobby-Z:s...Is possible assign role to user while creating user using UA
I have requirement that i wanted to assign the role to the user while
creating user in IDM vault using Novell User Application whith Admin
rights. Is there anyway to customize or integrate the role service
portlets with create portlet.or Is it possible to assign role to user
while creating user? if there is any otherway then please suggest me.
IDM User Application version is 3.6.1.
Thanks in advance,
On 05/17/2010 01:46 AM, sureshpatike wrote:
>...How is the default Role for a new registered user set?
I've been digging through the C# Personal Site Starter Kit code, and I cant seem to figure out how it assigns roles to new users. How is this determined?And how would one configure this?thanks
It doesn't add roles to users, you do. Go to the file menu in VWD and select Website -> ASP.NET Configuration. You will then be presented with a web site where you can add roles, users, approve users, and add users to roles.
Alternatively you can add some code to the registration page that adds the registered users to the "Friends" role. You will have to set the CreateUserWizard property of "Dis...