Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Mauritz_SA
Partner - Specialist
Partner - Specialist

Create new Qlik Sense Users by consuming API endpoint

Hi there

I was wondering whether it is possible to populate Qlik Sense Users by reading a REST API endpoint? We have an application in which we have users, but we would like to give some of the users access to Qlik Sense. We can expose the user details (ID, Name and Attributes) using a REST API endpoint, but I am not sure if we will be able to create those users in Qlik Sense? The plan is to use the application together with a certificate to get tickets for these users, but I assume that we need to have the users available in Qlik Sense first (we want to use certain rules based on attributes).

The alternative we are considering is to have a Qlik Sense App consume that REST API and then writing the details to an Excel file which is the source of a Qlik Sense UD connector, but we would like to cut out the QS app and Excel file if possible (seems like we are creating unnecessary steps in the process).

Please let me know if anyone has done something like this or if you have any suggestions.

Regards,

Mauritz

Update: My Excel plan won't work as I cannot write/store data into an Excel file. Now I REALLY need suggestions 😉

@Levi_Turner @Gysbert_Wassenaar @rwunderlich 

1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

Sure.

POST /qrs/user

Example body:

{
  "customProperties": [],
  "userId": "ltu",
  "userDirectory": "APICREATEEXAMPLE",
  "name": "Levi Turner",
  "attributes": [
    {
      "attributeType": "Group",
      "attributeValue": "DL-ExampleGroup",
      "schemaPath": "User.Attribute"
    }
  ],
  "inactive": false,
  "removedExternally": false,
  "blacklisted": false,
  "deleteProhibited": false,
  "tags": [],
  "privileges": null,
  "schemaPath": "User"
}

 

View solution in original post

3 Replies
Levi_Turner
Employee
Employee

Sure.

POST /qrs/user

Example body:

{
  "customProperties": [],
  "userId": "ltu",
  "userDirectory": "APICREATEEXAMPLE",
  "name": "Levi Turner",
  "attributes": [
    {
      "attributeType": "Group",
      "attributeValue": "DL-ExampleGroup",
      "schemaPath": "User.Attribute"
    }
  ],
  "inactive": false,
  "removedExternally": false,
  "blacklisted": false,
  "deleteProhibited": false,
  "tags": [],
  "privileges": null,
  "schemaPath": "User"
}

 

Mauritz_SA
Partner - Specialist
Partner - Specialist
Author

Awesome as always! I'll only be able to test this tomorrow, but I am yet to be disappointed by one of your answers😉. Thanks Levi!

Sivanesan
Partner - Contributor II
Partner - Contributor II

Hi @Levi 

Is the endpoint still relevant. I am getting an error that endpoint doesn't exist.

Regards

SivanesanCreate user endpoint not found.png