Community moderators have prevented the ability to post new answers.
For page permissions it is the setContentPermissions SOAP API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guilherme /Bob,
Thanks for the quick response.Appreciate your help. The answer partially answered my query .Actually i want to search pages with certain secret content and if the content exists , i want to restrict those pages from viewing and editing by anyone. ie. the page should not be accessible by anyone .
Actually for search i could find two API (please provide advice if in case there are better options):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add a page permission to restrict view to an administrator (or you). Administrators can always get access to the data, so I assume you are talking about non-administrators that you need to restrict.
Regarding finding content. Use something like:
confluence --action getContentList --search "secret stuff" --space xxxx
Once you are ready to make a change use something like:
confluence --action runFromContentList --search "secret stuff" --space xxxx --common '--action addPermissions --permissions view --id @pageId@ --userId admin'
Be careful to make sure you are finding the right content first and test everything :).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought I would write up a how to on this: How to find Confluence pages and then do something
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Subasree,
I believe that Bob Swift's CLI plugin might have what you are looking for:
In addition to that you could try to configure your own plugin to use our API:
Hope that this helps you in any way.
Cheers,
Guilherme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Specifically, the addPermissions action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.