Finding the creator of an user

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/18/2011 12:05:42 AM
Gravatar
Total Posts 76

Finding the creator of an user

Hello All,

Does anyone know how I can find out which user created a user through code?

For example:

  1. Admin1 creates subadmin1.
  2. Subadmin1 creates poweruser1
  3. poweruser1 creates user1.

 

Now,I would like to send a query into mojoportal for user1 asking the following things..

  1. Who created user1? mojoportal would reply poweruser1
  2. List all the users in heirarchical order (if possible)

I need to use user->subuser in my application. I would appreciate any help.

Thank you so much

 

3/18/2011 5:05:28 AM
Gravatar
Total Posts 18439

Re: Finding the creator of an user

We don't currently have a way to do that. Users are typically created via the site registration process, so users created manually are treated no differently. Users only have permissions based on their roles there is no such thing as a admin or power user other than defined by their roles and the permissions of those roles. Only Admins and role manager role can manage the roles of other users and even role manager cannot remove a user from the admins role, only admins can do that.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.