Managing accounts with web services

howie.hamlin's Avatar

howie.hamlin

13 Jun, 2013 04:36 PM

Unless I'm missing something, there does not seem to be a way to manage user accounts via web services. We would like to manage account deletions in particular with web services. Are there any plans to add this type of functionality?

Thanks

  1. Support Staff 1 Posted by Tim on 13 Jun, 2013 05:33 PM

    Tim's Avatar

    Hi Howie,

    This functionality already exists. Looking at the WSDL, you should see the following complexTypes:

    <complexType name="user">...</complexType>
    <complexType name="group">...</complexType>
    <complexType name="role">...</complexType>
    
    Those 3 types contain the required parameters you'll need in order to manage Users in the system.

    Are you using PHP for your Web Services scripts? Java? Let us know and perhaps someone can chime in with an example.

    Thanks

  2. 2 Posted by howie.hamlin on 13 Jun, 2013 05:55 PM

    howie.hamlin's Avatar

    Wow, I completely missed that, sorry. We're using Java for this.

    Thanks

  3. 3 Posted by Bradley Wagner on 17 Jun, 2013 03:39 PM

    Bradley Wagner's Avatar

    Hi Howie,

    Here are some Java examples of manipulating user objects using Web Services. You'll want to use the client.delete method to remove user objects.

    Let us know if you need any additional help.

    Thanks,
    Bradley

  4. 4 Posted by howie.hamlin on 09 Jul, 2013 03:17 PM

    howie.hamlin's Avatar

    I have a lot of the code now set up but when I add the code that you referenced (the code where client.delete lives) the compilation fails on 4 imports and I'm not sure where I can get these.

    import com.hannonhill.commons.junit.HHTestCase;
    import com.hannonhill.commons.util.ClassUtil;
    import com.hannonhill.commons.util.StringUtil;
    import com.hannonhill.commons.util.io.StreamReader;

    Thanks,

    Howie

  5. 5 Posted by howie.hamlin on 09 Jul, 2013 04:15 PM

    howie.hamlin's Avatar

    Never mind, I created some new code based on your other code and it works great.

    You can consider this issue closed.

    Thanks,

    Howie

  6. Support Staff 6 Posted by Tim on 09 Jul, 2013 04:17 PM

    Tim's Avatar

    OK, thanks for the update, Howie! Glad you were able to get things working.

    Take care!

  7. Tim closed this discussion on 09 Jul, 2013 04:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac