Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
For context, we are going through a process of migrating user's email accounts to a new domain. Issue: once they have the new account set up in Qlik, obviously all the personal objects created/saved while using their "old" account will not be visible.
So, I did some research into using Qlik CLI to change the ownership of a Bookmark, and it work flawlessly, which is great.
But, this only works if I know the ID for the bookmark.
And here's where I'm stuck: despite being Tenant Admin, I cannot see a list of personal bookmarks using either Qlik CLI (qlik app object ls -a <app_id>) or Qlik Automate ("List Bookmarks" block). I can only see my own personal objects using these 2 methods.
I know there's a "workaround": have the user publish the bookmark, then copy the link. Part of that URL will be the bookmarkID. Then just un-publish the bookmark. Done. Great! 🙂
Unless: the user no longer has access to the old account in which case this cannot be done OR we're talking about dozens of bookmarks which will take hours to go through one by one...
Any ideas?
On Cloud, we offer the admin.apps scope. If you create a machine-to-machine OAuth client with that scope, it will be able to list all content (including personal) in the app.
You can see how this is used in https://qlik.dev/manage/migrate/migrate-apps-tenants/ which uses this to enumerate all content in an app when moving between tenants (see the source-tenant configuration).
Just checked - this is returned in the layout call. Heavier data set but present in qMeta
qlik app object layout
Ah, yes. For objects you should be able to get away with opening the app with no data, try adding
--no-data
to the prompt
On Cloud, we offer the admin.apps scope. If you create a machine-to-machine OAuth client with that scope, it will be able to list all content (including personal) in the app.
You can see how this is used in https://qlik.dev/manage/migrate/migrate-apps-tenants/ which uses this to enumerate all content in an app when moving between tenants (see the source-tenant configuration).
Hi Dave,
Yep that worked, I am now able to list all bookmarks regardless of ownership and publication state, which is 95% of what I am looking for.
The 5% is the Bookmark Owner, which I cannot find documentation anywhere as to how to get that using Qlik CLI.
Do you have information on how I can get to those 5%? 🙂
Which command are you using to pull the object metadata? I do recall some issue with returning owner via qlik-cli
Just checked - this is returned in the layout call. Heavier data set but present in qMeta
qlik app object layout
Thank you very much Dave, that was spot on the guidance I needed.
Have a great rest of your day! 🙂
Hi Dave,
Just ran into an "issue". Tried to get a list of bookmarks of a specific app, but got an error:
Error: could not open app with ID '<appID>': : Access denied (5 GENERIC ACCESS DENIED)
This app has Section Access, and probably that's why the error occurred but my question to you is, is it an expected error or should the M2M context I'm using with Qlik CLI go past that restriction automatically and list the app's metadata regardless? Do you know?
Ah, yes. For objects you should be able to get away with opening the app with no data, try adding
--no-data
to the prompt
Legend! 🙂
Thank you Dave.