Hopp til hovedinnhold

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

AUser-1146
Opprinnelig innleggsforfatter

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

Bli med i samtalen

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

Toppsvar

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 svar

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
Opprinnelig innleggsforfatter
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.

Har du fortsatt spørsmål?