Forum Discussion

Jeff_Behl's avatar
13 years ago

Batch Processing adding users.

Hi Rick - n

nWe dont have the specific documentation for this on our API documentation page yet ( http://help.logicmonitor.com/develope... ), but it is available via the addAccount() method. The call is:n

n/santaba/rpc/addAccount(String username, String password, Stringn

nphone, String smsemail, String smsEmailFormat, int[] roles, Stringn

nstatus=active)n

nTo get the list of roles:n

n/santaba/rpc/getRoles()n

nCombining this with the information on the API page should provide enough information for scripting it, if that is what you would like to do.n

nOf course, if you would like us to do a bulk import for you, please dont hesitate to contact support@logicmonitor.com.

  • Is there away to batch process users so that I don\'t have to enter each on seperately?

  • Is there a similar method for adding/removing users from groups? We have a rotating on call group in our escalation chains and it would be great to be able to programmatically change its members.

  • On 5/3/2012 at 10:00 AM, Jeff Behl said:

     

    Hi Rick - n

    nWe dont have the specific documentation for this on our API documentation page yet ( http://help.logicmonitor.com/develope... ), but it is available via the addAccount() method. The call is:n

    n/santaba/rpc/addAccount(String username, String password, Stringn

    nphone, String smsemail, String smsEmailFormat, int[] roles, Stringn

    nstatus=active)n

    nTo get the list of roles:n

    n/santaba/rpc/getRoles()n

    nCombining this with the information on the API page should provide enough information for scripting it, if that is what you would like to do.n

    nOf course, if you would like us to do a bulk import for you, please dont hesitate to contact support@logicmonitor.com.

     

    This doesn't allow you to create named users programatically, though. You can go ahead and set this up and have it create an account for all the relevant people, but you'll still need to go and fill out the first/last names manually.

    If you're doing this, I'd also recommend you go ahead and change your new user email template so that you tell the new users that an account has been created for them and they need to use the 'Forgot Password' link to set a password. Otherwise, you have the LogicMonitor admin knowing everyone's passwords (bad idea) or having the script send it in plain text (also bad idea).