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

バックエンドからの権限付与とJavascriptの回復

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

問題

  • 特定のページに誤ったjavascriptを追加してした事により、通常ログインができなくなりました(SSOは可能)。

  • バックエンドからの操作で通常のユーザに管理者権限を付与することは可能ですか 

  • バックエンドで当該のjavascriptを削除したいのですが、方法がありますか

環境

  • Liferay Portal 6.2, Liferay DXP 7.0, Liferay DXP 7.1

解決策

  • ページの設定はLayoutテーブル内に保存されており、細かい設定情報は"Layout.typeSettings"で管理されています。
    当該のカスタムログインページの設定をデータベース上で直接編集することで、調整ができる可能性があります。(データベースの直接編集は推奨されませんので、あらかじめご留意ください)

  • APIを使うことで、外部から特定のユーザーに管理者権限を付与することもできます。
    ”set-role-users”が利用できると思われます。
    ロールIDは”Role_”テーブルをご参照ください。
    ユーザーが所持するロール情報につきましては、”Users_Roles”テーブルをご参照ください。
    ※APIの実行には管理者権限を持つユーザーが必要です
did-this-article-resolve-your-issue

legacy-knowledge-base