Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
aruneshgupta
Contributor III
Contributor III

Certificate argument - Exporting and importing Security rules using Qlik-Cli

Dear All,

I need your help!

I am using below thread to import and export Qliksense Security rule. I just changed the server ? name in the script and then running the script. 

It is asking to pass certrficate ? I am not sure what should I pass here ? Please suggest ?

Regards,

Arunesh Kumar 

 

https://community.qlik.com/t5/Official-Support-Articles/Exporting-and-importing-Security-rules-using...

 

Connect-Qlik -computername "QlikSenseServer.company.com"
# This will export the custom security rules and output them as secrules.json
Get-QlikRule -filter "type eq 'Custom' and category eq 'security'" -full -raw  | ConvertTo-Json  | Out-File secrules.json
# This will import secrules.json into a Sense site
# The ideal use case would be to move the developedsecurity rules from one environment to another, so connecting to another Sense site would likely be needed here
Get-Content -raw .\secrules.json |% {$_ -replace '.*"id":.*','' } | ConvertFrom-Json | Import-QlikObject

 

 

Labels (1)
1 Reply
Maria_Halley
Support
Support

@aruneshgupta 

If you haven´t already can you check the instructions in the below link

https://github.com/ahaydon/Qlik-Cli-Windows/wiki/Establishing-a-connection