• 0
Sign in to follow this  
Rick

Batch Processing adding users.

Question

3 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this