Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
paulcalvet
Partner - Specialist
Partner - Specialist

Cli SaaS use filter to retrieve licence assignment

Hello,

I try to retrieve the licence assignent for one user in SassS.

I don't know how to use the filter command, I want to filter by the subject like that but I have an error :

qlik license assignment ls --filter ("subject eq 'Toto@toto.com'")

Error: {
"error": "LICENSES-BadRequest",
"message": "invalid filter, parse conflict [00:001]: expected op.Or or[func func func func] but got \"su\"",
"errors": [
{
"code": "LICENSES-036",
"title": "invalid filter, parse conflict [00:001]: expected op.Or or[func func func func] but got \"su\""
}
]
}

Do you know how I can use filter with Cli SAAS ?

Thanks

Labels (2)
1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

The API itself expects this format: filter=field <operator> "<value>". Example: /api/v1/licenses/assignments?filter=subject eq "QLIK-POC\\ltu"

To operationalize this in Qlik-CLI, we would use this style of syntax:
qlik license assignment ls --filter 'subject eq \"QLIK-POC\\ltu\"'

(we are escaping the double quotes and, in my case the backslash, characters)

View solution in original post

2 Replies
Levi_Turner
Employee
Employee

The API itself expects this format: filter=field <operator> "<value>". Example: /api/v1/licenses/assignments?filter=subject eq "QLIK-POC\\ltu"

To operationalize this in Qlik-CLI, we would use this style of syntax:
qlik license assignment ls --filter 'subject eq \"QLIK-POC\\ltu\"'

(we are escaping the double quotes and, in my case the backslash, characters)

paulcalvet
Partner - Specialist
Partner - Specialist
Author

Thank you !