Qlik Community

Qlik Sense Deployment & Management

Discussion board where members learn more about Qlik Sense Installation, Deployment and Management.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

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
Highlighted
Employee
Employee

Re: Create new Qlik Sense Users by consuming API endpoint

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

2 Replies
Highlighted
Employee
Employee

Re: Create new Qlik Sense Users by consuming API endpoint

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

Highlighted
Partner
Partner

Re: Create new Qlik Sense Users by consuming API endpoint

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!