How to remove all restrictions from pages within a space

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

You'd like to switch to managing access to a space through global permissions and need to remove all the page level permissions

ソリューション

  1. Confluence をシャットダウンします。
  2. データベースのバックアップを取得します。
  3. Run below query to find out the space id of the target space you want to remove the restrictions:

    データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。

    Select SPACEID from SPACES WHERE SPACENAME = 'My Space Name';
  4. The example spaceid is '851969', once you get the id from above query, replace the number 851969 in below queries and run then sequentially:

    delete from CONTENT_PERM WHERE CPS_ID IN (select ID from CONTENT_PERM_SET WHERE CONTENT_ID IN (select CONTENTID from CONTENT WHERE SPACEID = 851969 AND CONTENTTYPE = 'PAGE'));
  5. And:

    delete from CONTENT_PERM_SET WHERE CONTENT_ID IN (select CONTENTID from CONTENT WHERE SPACEID = 851969 AND CONTENTTYPE = 'PAGE');


  6. Confluence を起動します。

In case of any problems, please shutdown Confluence and restore the database by using the database backup taken from step 2.

Last modified on Mar 21, 2024

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.