legacy-knowledge-base
公開されました Sep. 10, 2025

リソースの権限を変更するAPIがありますか?

written-by

Shimada Taro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

環境

  • リソースの権限を変更するAPIがありますか?

環境

  • DXP 7.0+

解決

  • 権限の削除:remove-resource-permission
  • 権限の追加:add-resource-permission
    注:”scope=4”(SCOPE_INDIVIDUAL)のコンテンツに対応しておりません。
  • 権限の変更:set-individual-resource-permissions
    actionIdsはclass java.lang.String[]型となっています。設定したい権限情報を "VIEW","ADD_DISCUSSION" のような形式で指定します。
  • 指定するパラメータの情報につきましては、「ResourcePermission」テーブルをご確認ください。
  • actionIdの指定は以下のクエリを実行し、定義を参照します。
    select * from ResourceAction where name='com.liferay.portal.kernel.model.Layout';

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base