Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Jio
Contributor III
Contributor III

QlikSense Problem importing security rules.

Hi All,

ik have a problem when trying to import the securtiy rules in a new environmetn.

what have i done:

I've successfully export all the custom security rules with powershell (QLIK-CLI) as a json file.

i copy the json file to the new server.

but when i try to import the security rules 1 rule got imported then i got the following error:

Jio_0-1678115627592.png

To export i use these code:

" Get-QlikRule -filter "type eq 'Custom' and category eq 'security'" -full -raw | ConvertTo-Json | Out-File D:\temp\QS-Prd\Newsecrules.json"

To import i use this code:

"Get-Content -raw D:\Temp\QS-Prd\\Newsecrules.json |% {$_ -replace '.*"id":.*','' } | ConvertFrom-Json | Import-QlikObject -Verbose"

Does any one have an idea and can help me with this problem.

I've also added the core.ps1 script (as tekst) witch gives the error.

Kind regards

 

Labels (1)
1 Solution

Accepted Solutions
Jio
Contributor III
Contributor III
Author

I found the reason/issue.

You cannot use the QLIK-CLi command to import security rules that has TAGS or Custom properties configured.

All other Security rules without additional config (Tags or Custom properties) are successfully imported.

This is by design. The working of the Qlik- Cli command.

View solution in original post

3 Replies
Eduardo_Monteiro
Partner - Creator III
Partner - Creator III

Hello @Jio 

Its failing because lack of privileges. Does your user has RootAdmin? Is it the same user you are logged to the machine you are running QLIK-CLI ?

BR,

Eduardo Monteiro

 

Eduardo Monteiro - Senior Support Engineer @ IPC Global
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

Jio
Contributor III
Contributor III
Author

Hello Eduardo,

Yes the user i'am using to import is a ROOTAdmin  user. With this user i logged in on the server ansd ther i exeute the QLIK-CLI commands

 

Jio
Contributor III
Contributor III
Author

I found the reason/issue.

You cannot use the QLIK-CLi command to import security rules that has TAGS or Custom properties configured.

All other Security rules without additional config (Tags or Custom properties) are successfully imported.

This is by design. The working of the Qlik- Cli command.