To use Rest API ensure that the user has the following permission: 


To configure user permissions:

  1. Connect to XenMobile Portal
  2. Go to settings and select Role-based Access Control 
  3. Expand one of the users to see these permissions