Langkau ke kandungan utama

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

AUser-1146
Poster asal

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

Sertai perbualan

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

Jawapan Teratas

Joseph-1062
Geotabber

@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
Geotabber

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 Balasan

Joseph-1062
Geotabber

@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
Poster asal
The MyGeotab api documentation does not have any information about creating saml users ether. How can I programmaticly create a saml user?
Joseph-1062
Geotabber

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.

Masih ada soalan?