MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Any way to assign users another role during registration ? (Closed) (Mono Support )

Viewed 4563 time(s), 5 post(s) 3/28/2014 6:12:00 PMby super
super

super

3/28/2014 6:12:00 PM
When any user registers, he/she by default gets the role "Users".

Is there any way to assign another role to the user during the registration process ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

3/30/2014 7:47:29 AM
Hi,

you can change the default user role in the web.config by setting the following:

<add key="DefaultUserRoles" value="Users" />
Note: You can add multiple roles to this setting in CSV format.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

4/1/2014 1:23:23 PM
Can I add multiple tags like  this in webconfig ?

<add key="DefaultUserRoles" value="Users" />
<add key="DefaultUserRoles" value="NewsUsers" />
<add key="DefaultUserRoles" value="BlogUsers" />

This content has not been rated yet. 
6018 Reputation 709 Total posts
imarusic

imarusic

4/1/2014 1:26:55 PM
Hi,

you can use comma sign ','. An example:

<add key="DefaultUserRoles" value="Users,NewUsers" />
Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
super

super

4/1/2014 1:29:20 PM
Ok,  thank you
This content has not been rated yet. 
6018 Reputation 709 Total posts