Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Nov 9, 2023 5:53:11 AM
Nov 9, 2023 5:35:33 AM
Using the change-owner REST API call for app objects or the qlik-cli app object change-owner command results in:
403 - Forbidden (empty response)
This is a current limitation. As specified on the API call information page, the user running the call must be the owner of the object. Even tenant admins won't be able to run the call, if they are not the object's current owners.
As the qlik-cli command uses the same API call, the behaviour is identical.
The user running the call/command is not the object owner.
(Qlik Windows)engineObjectId == (Qlik Cloud)objectId. Don't know is it a bug or not but that is how it works.
Hi @mikara89 , can you please clarify your comment above? Thanks in advance!
Ok, I was also getting 403.
# Retrieve the object and owner
# If your user subjects in Qlik Cloud don't match directory\userId, use a different approach
$objectId = $i.engineObjectId
$ownerSubject = $i.owner.userDirectory + '\\' + $i.owner.userId
but instead of engineObjectId i was trying to change owner using id field form Qlik Windows, and on that try I was getting 403. Then I use cli to list object and saw that Qlik Saas Cloud objectId is the same as engineObjectId. After changing from $i.id to $i.engineObjectId command was successful(I used rest api not cli in this case). Maybe that is also your case.
Hi @Daniele_Purrone,
do you have any solution for this situation? We want to migrate app from on prem solution to cloud and then reassign owners according to on prem app.
We get either 403 Access denied error if we want to change owner directly for published object or unpublish all community sheets and try to change the owner which is ok, but publishing back to community sheet we get the same error as you mentioned in the article.
There is no way how to do that...?