Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
lwp89
Contributor III
Contributor III

How to get the list of App in a space where Owner is not myself?

I tried using the Get App List block it does not pull app owner IDs.

 

  • We have 3 shared spaces which we use as an archive and only the admin should be the owner of all those applications so no-one else can delete it by mistake.
  • Some user will create duplicate copies of those apps in that shared space to refer to load scripts (which is fine) but they forget to delete their copies.
  • So that space becomes populated with multiple copies of an app

 

I would love to run an automation overnight that would delete all the apps from those 3 spaces where owner is not equals to the Admin

 

Can anyone suggest which blocks we should use?

 

Thanks

 

 

Labels (2)
1 Solution

Accepted Solutions
blaise
Partner - Specialist
Partner - Specialist

If you want to build a smarter one you can use the Raw API list request with path set to items and some query parameters;

spaceId - your space id

resourceType - app

notOwnerId - <admin user id>

 

This call will only list apps from the specified space that are not owned by admin. Just add a delete App inside the Raw API list loop.

View solution in original post

2 Replies
blaise
Partner - Specialist
Partner - Specialist

I guess there are some templates out there you can use as a foundation but if you want to build it from stratch (more fun) i would start with a List Apps, Get App Information, condition if owner from app information is not equal to Admin followed by a delete app if condition eq. true.

blaise_0-1649058175855.png

 

blaise
Partner - Specialist
Partner - Specialist

If you want to build a smarter one you can use the Raw API list request with path set to items and some query parameters;

spaceId - your space id

resourceType - app

notOwnerId - <admin user id>

 

This call will only list apps from the specified space that are not owned by admin. Just add a delete App inside the Raw API list loop.