How to View User Profile through the SDK

Related Questions

  • How to View a List of Users on the Database through the SDK?

Applies To

  • MyGeotab
  • SDK

Procedure

  1. Navigate to the API runner https://geotab.github.io/sdk/software/api/runner.html
  2. Login to the corresponding server
  3. Run the following API call to view the list of users on the database
    • api.call("Get", {
      "typeName": "User",
      "search": {
      }
      }, function(result) {
      console.log("Done: ", result);
      }, function(e) {
      console.error("Failed:", e);
      });
  4. You can also search for different properties of the User and UserSearch object. For example, if you want to search for details based on the name property of the User object, then run the following API call
    • api.call("Get", {
      "typeName": "User",
      "search": {
      "name": "<UserName>"
      }
      }, function(result) {
      console.log("Done: ", result);
      }, function(e) {
      console.error("Failed:", e);
      });
    • Modify the <UserName> with respect to the required user

Additional Notes

  • You can modify the search properties based on your requirements by referencing the API Reference