Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Spartan27215
Partner - Creator
Partner - Creator

How to bulk add users when using Azure AD Idp

Out SaaS tenant uses Azure AD integration, when we 1st got started and to get the model and application(s) built we only needed a few users so we we through the typical, login routine to make the user known to Qlik and then went in and assigned the user resources and permissions. However now that we are wanting to open this up to MANY users I need some other way (like a way to import) to bring add these users in bulk and be able to assign them to their respected managed space(s) with the appropriate permissions. 

Has something like this been developed?

Labels (2)
20 Replies
Spartan27215
Partner - Creator
Partner - Creator
Author

Here is what I got to work not using anything other than the C#.NET built-in HTTP Client and Response objects. Note I fashoned the response uing a Json to C# converter using the response sample at <Users | Qlik Developer Portal>

HttpClient Client = new();
Client.BaseAddress = new Uri(sAPIURL);
Client.DefaultRequestHeaders.Clear();
Client.DefaultRequestHeaders.Add("Authorization", "Bearer " + sAPIKey);
//Client.Content.Add("Content-Type", "application/json");

sCommand = "users";
HttpResponseMessage Response = Client.GetAsync(sCommand).Result;

// Check for Success
if (Response.IsSuccessStatusCode)
{
        QlickRestClasses.QlikUserList QUsers;
        QUsers = Response.Content.ReadFromJsonAsync<QlickRestClasses.QlikUserList>().Result;
}