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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
Adfc_NZ
Contributor III
Contributor III

How can I identify a personal Bookmark (i.e. Un-published)

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?

Labels (1)
  • SaaS

3 Solutions

Accepted Solutions
Dave_Channon
Employee
Employee

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).

View solution in original post

Dave_Channon
Employee
Employee

Just checked - this is returned in the layout call. Heavier data set but present in qMeta

qlik app object layout

View solution in original post

Dave_Channon
Employee
Employee

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

View solution in original post

8 Replies
Dave_Channon
Employee
Employee

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).

Adfc_NZ
Contributor III
Contributor III
Author

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%? 🙂

Dave_Channon
Employee
Employee

Which command are you using to pull the object metadata? I do recall some issue with returning owner via qlik-cli

Dave_Channon
Employee
Employee

Just checked - this is returned in the layout call. Heavier data set but present in qMeta

qlik app object layout
Adfc_NZ
Contributor III
Contributor III
Author

Thank you very much Dave, that was spot on the guidance I needed.

Have a great rest of your day! 🙂

Adfc_NZ
Contributor III
Contributor III
Author

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?

Dave_Channon
Employee
Employee

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

Adfc_NZ
Contributor III
Contributor III
Author

Legend! 🙂

Thank you Dave.