Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I would like to allocate analyzer (or profesional) access with the QRS API.
I am trying to do it according to that documentation https://help.qlik.com/en-US/sense-developer/February2019/APIs/repositoryserviceapi/index.html?page=1...
(which unfortunately does not contains an example of the request body to send)
I am sending a POST request to https://my-qlik-server:4242/qrs/license/analyzeraccesstype?Xrfkey=xbZdef9hijkPxn4P
Body :
{
"modifiedByUserName": "INTERNAL\\sa_repository",
"modifiedDate": "2019-05-03T17:23:02.316Z",
"user": {
"userDirectory": "AZ-XXX",
"userId": "2db75108-922f-4736-8461-a7ec7c1edda2"
},
"createdDate": "2019-05-03T17:23:02.315Z"
}
But, in return, I get a HTTP 400 (bad request)
Could you please provide the body that must be passed to make it work ?
Is there any logs in QlikSense giving more details about what is bad in the request ?
Thanks,
JF
PS : I have other QRS APIs calls working fine, the problem is specific to that API. Certificate authentication is OK and HTTP headers like Xrfkey are passed correctly...
On my end, I am able to do it using this:
From your end, you shouldn't need the modifiedByUserName, modifiedDate, or createdDate elements since the entity doesn't exist yet. The QRS will add those as needed.
I am not seeing an obvious one. What is the actual response? For example on my end "errorText": "Violation of the uniqueness constraint" comes when I try to allocate a user an Analyzer pass when they already have one.
On my end, I am able to do it using this:
From your end, you shouldn't need the modifiedByUserName, modifiedDate, or createdDate elements since the entity doesn't exist yet. The QRS will add those as needed.
Hi Levi,
Thanks for your support, unfortunately I still have the same HTTP 400 as a response (I probably already tested that body before)
But it's already a good thing to know that this request is working on your end !
Do you know if there is any log files on Qlik Sense that could help ?
Thanks
I am not seeing an obvious one. What is the actual response? For example on my end "errorText": "Violation of the uniqueness constraint" comes when I try to allocate a user an Analyzer pass when they already have one.
Thanks, I had not thought to read the body of the message when when the HTTP response code was not normal ...
Now I can better understand !
Have a good day !
Hi Jeff,
Were you able to solve "HTTP 400 (bad request)" exception?
I am getting the same error.
Thanks
Rytis
Hi Rytis,
Yes, I could find more details when looking at the body of the HTTP response.
I think it was because the user already had a license.
Regards,
Jeff
Thanks Jeff,
Understood, I am seeing a detailed error in response as well now.
Regards,
Rytis
Dears,
When I try to use QRS-API to give an analyzer access to a user
post /license/analyzeraccesstype
* I am testing with a virtual proxy - header authentication static user directory in QMC.
It shows "No matching endpoint found"
I use Open API specification for Repository Main API
Please, help. @Levi_Turner
It worked when I gave an admin role (repository access) to my api user.