Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to programatically add new usersHow to programatically add new users
Previous
 
Next
New Post
6/2/2015 3:26 PM
 

I'm coming from the background of using third party modules such as Dynamic Forms to provide custom functionality to users. I have a situation where I want to provide a form in which a DNN user would be able to make additional DNN users. (Think like a Mom adding some children accounts). I want to learn how to add that functionality to one of my forms. If I understand things correctly, it would be best to use an DNN API to add the new users. But since I am not a VB or C+ developer, I want to know if there is another way for me to interact with the API without creating a module or procedure for calling the api. Ideally, there would be a silent HTTP Post that I could send to the api or maybe a module that accepts a silent http post and then plugs my parameters into the api and runs it.??

What it comes down to is that I don't know how to write the code, but I want to use the API. Is there any hope for me?

If there is another way to let one user create additional users, that would also be great news.

The built-in method for registering a new user would not do for this need. Thank you for pointing me in the right direction.

 
New Post
6/2/2015 4:47 PM
 
see http://www.dnnsoftware.com/wiki/creat... for sample code. There is no service framework method to invoke such code (yet - we may add one in 8.0.0), you'd need to create a module (the wiki has plenty of guidance)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/2/2015 6:11 PM
 

How about this module in the Forge . . .

http://www.dnnsoftware.com/forge/dnn-...

Note: Due to an issue with calling the DNN API method  NavigateUrl from inside a scheduled job on sites which have not enabled "advanced" url management in web.config, the current release should not be used on sites which have been upgraded from DNN versions pre-7.1.0 without first setting urlFormat="advanced" in web.config. New installs of DNN 7.1.0 and later default to having advanced url management enabled. I will be uploading a new release of By Invitation which includes a work-around for this issue later this week.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/3/2015 3:47 PM
 

Thank you both for your help.

Cathal, I almost jumped in to follow your mention that there was plenty of guidance for building a module for this task. Frankly, I was hoping for a quicker solution if I could find it. I still have not built a module yet. Maybe with the Single Page App is available, I'll jump in then and learn how to do it. I am actually looking forward to that!

William, I like your module and will look to it for future needs that can accommodate the two way interaction that it suggests. It looks like the invitation email must be clicked on to work. As cool and simple as that is, I need a no-interaction model.

On a hunch I checked the manual for the Dynamic Registration module and found that it allows a silent http post to trigger it to create a user with the user values passed in the post. I have tried it and it works well. It is not fully implemented in my form yet, but I think this will do nicely. Thank you again!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to programatically add new usersHow to programatically add new users


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out