New: Manage users and account access via the API
Posted in Release Notes on March 9th, 2010 by Doron – Be the first to commentWe have extended the SAManage API to provide our users and partners with the ability to create, modify, or delete users in their accounts directly from the API. The recent addition to the API makes it easier to integrate with on-premise solutions and manage your user’s access from one central repository such as your current LDAP.
Getting a list of all users
This request returns a summary of all users available in the account.
GET “https://app.samanage.com/users.xml”
curl –digest -u “username:password” -H “Accept: application/vnd.samanage.v1+xml” -X GET “https://app.samanage.com/users.xml”
Creating a user
The following request will create a new user in the account. When a new user is created an activation email is sent to the user’s email requesting that he actives his new account and select a password.
POST “https://app.samanage.com/users.xml”
curl –digest -u “username:password” -d “<user><email>a@d.com</email><first-name>a</first-name><last-name>b</last-name><phone>1234567890</phone><roles><helpdesk_user>1</helpdesk_user></roles></user>” -H “Content-Type:text/xml” -X POST “https://app.samanage.com/users.xml”
Updating a user
The following request will update user properties for a specific ticket.
PUT “https://app.samanage.com/users.xml”
curl –digest -u “username:password” -d “<user><email>a@d.com</email><first-name>a</first-name><last-name>b</last-name><phone>1234567890</phone></user>” -H “Content-Type:text/xml” -X PUT “https://app.samanage.com/users/1518.xml”
Visit our website to learn more about the SAManage SaaS IT management API.




















