Pāriet uz galveno saturu

How do I create a SAML user through the MyAdmin API?

AUser-1146
Oriģināls plakāts

Also, how can this be done so no email is sent to the user on creation?

Pievienojieties sarunai

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Populārākās atbildes

Joseph-1062
Ģeogrāfiskais zīmols

@AUser-6139​ SAML users can only be set up via MyGeotab. You can find information on how to do so in our SAML Setup Guide.

Joseph-1062
Ģeogrāfiskais zīmols

After adding the certificate(s) to your database, an Add<User> call will have to be performed where you specify the authentication type and certificate issuer. Below is a Javascript sample of the minimum required fields to create a user with SAML authentication:

api.call("Add", {

  "typeName": "User",

  "entity": {

    "name":"samluser@abccustomer.com",

    "firstName": "SAML Test",

    "lastName": "User",

    "userAuthenticationType": "SAML",

    "issuerCertificate": {

      "id":"<issuer certificate ID>",

    },

    "companyGroups": [

      {

        "id":"GroupCompanyId"

      }

    ],

    "securityGroups": [

      {

        "id":"GroupUserSecurityId"

      }

    ],

    "changePassword": false

  }

});

 

Note: userAuthenticationType must always be set to "SAML"

 

To retrieve the list of certificates in a database, you can perform a Get<Certificate> like so:

api.call("Get", {

  "typeName":"Certificate"

});

 

This will return an array of all the certificates (as objects) added to a database.

Please note that the Certificate entity type is not fully supported, use with caution.

3 Atbildes

Joseph-1062
Ģeogrāfiskais zīmols

@AUser-6139​ SAML users can only be set up via MyGeotab. You can find information on how to do so in our SAML Setup Guide.

AUser-1146
Oriģināls plakāts
The MyGeotab api documentation does not have any information about creating saml users ether. How can I programmaticly create a saml user?
Joseph-1062
Ģeogrāfiskais zīmols

After adding the certificate(s) to your database, an Add<User> call will have to be performed where you specify the authentication type and certificate issuer. Below is a Javascript sample of the minimum required fields to create a user with SAML authentication:

api.call("Add", {

  "typeName": "User",

  "entity": {

    "name":"samluser@abccustomer.com",

    "firstName": "SAML Test",

    "lastName": "User",

    "userAuthenticationType": "SAML",

    "issuerCertificate": {

      "id":"<issuer certificate ID>",

    },

    "companyGroups": [

      {

        "id":"GroupCompanyId"

      }

    ],

    "securityGroups": [

      {

        "id":"GroupUserSecurityId"

      }

    ],

    "changePassword": false

  }

});

 

Note: userAuthenticationType must always be set to "SAML"

 

To retrieve the list of certificates in a database, you can perform a Get<Certificate> like so:

api.call("Get", {

  "typeName":"Certificate"

});

 

This will return an array of all the certificates (as objects) added to a database.

Please note that the Certificate entity type is not fully supported, use with caution.

Joprojām ir jautājumi?