tags:

views:

126

answers:

1

I'm working on a custom module that needs to be able to promote certain users to a particular user security role.

This isn't the primary purpose of the module, it's just a minor feature. (not trying to create a new user management module)

Can somebody please point me in the right direction?

Thanks.

+2  A: 

The code for this is root/admin/security and root/admin/users

Specfically using the DotNetNuke.Security.Roles.RoleController namespace:

DotNetNuke.Security.Roles.RoleController.AddUserRole(int, int, int, System.DateTime)

DotNetNuke.Security.Roles.RoleController.AddUserRole(int PortalID, int UserId, int RoleId, System.DateTime EffectiveDate, System.DateTime ExpiryDate)
James Campbell