Skip to main content

Using Qlik Application Automation to unassign user from spaces

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Edy_Tan
Employee
Employee

Using Qlik Application Automation to unassign user from spaces

Last Update:

Nov 3, 2022 2:23:25 AM

Updated By:

Edy_Tan

Created date:

Nov 3, 2022 2:23:25 AM

In my previous blog I have shared how to assign users into spaces.  Now I have a request to unassign them from the spaces so that all the apps that they have created will be frozen, i.e., they will not be able to make further changes.  This is good for hackathon where they can make use of the assigned space to build their submission and once the deadline for submission is over, they will not be able to make any more changes.  With Qlik Application Automation, this process can be automated from by downgrading the user's role to read only.

First I will loop through all the spaces using the List Spaces block

Edy_Tan_0-1667456279327.png

I used the Condition block to check the name of the spaces if it fits a predefined pattern

Edy_Tan_1-1667456320514.png

In my scenario I have suffix all the spaces with DAT2022, so the condition will be if the first 7 characters contain 'DAT2022'

Edy_Tan_2-1667456371776.png

I will then list down all the members within the space using the List Members from Space block

Edy_Tan_3-1667456424031.png

Next I will update the roles of the user using the Update Roles of Member from Space

Edy_Tan_4-1667456497500.png

I will need to specify the space ID, User ID and the Roles.  In this case I will set them as 'consumer' which has view only rights

Edy_Tan_5-1667456546209.png

The following is the entire flow of the Qlik Application Automation

Edy_Tan_6-1667456579326.png

Labels (1)
Contributors
Version history
Last update:
‎2022-11-03 02:23 AM
Updated by: