uncategorized

幫用戶增加後台管理員權限

2019-01-19 最後更新:2026-02-20) · 2 分鐘 · Ray Lee (System Analyst)

因為System管理員帳號只有一個,在多人維護環境,為了要留下修改紀錄,建議指派前端參與維護的使用者System權限。可以確認權責。
1) 先在User介面找出要設定使用者的Primary Key ID: AD_User_ID.
2) 再執行下述SQL指令即可

INSERT INTO ad_user_roles(
            ad_user_id, ad_role_id, ad_client_id, ad_org_id, isactive, created, 
            createdby, updated, updatedby, ad_user_roles_uu)
    VALUES (1000002, 0, 0, 0, 'Y', now(), 
            100, now(), 100, uuid_generate_v4());
English Version

Since there is only one System administrator account, in a multi-person maintenance environment, it is recommended to assign System privileges to the front-end users participating in maintenance in order to keep modification records. This ensures accountability.
1) First, find the Primary Key ID (AD_User_ID) of the user you want to configure in the User interface.
2) Then execute the following SQL command:

INSERT INTO ad_user_roles(
            ad_user_id, ad_role_id, ad_client_id, ad_org_id, isactive, created,
            createdby, updated, updatedby, ad_user_roles_uu)
    VALUES (1000002, 0, 0, 0, 'Y', now(),
            100, now(), 100, uuid_generate_v4());
日本語版

Systemの管理者アカウントは1つしかないため、複数人でメンテナンスを行う環境では、変更履歴を残すために、メンテナンスに参加するフロントエンドユーザーにSystem権限を付与することを推奨します。これにより責任の所在を確認できます。
1) まず、ユーザー画面で設定したいユーザーのプライマリキーID(AD_User_ID)を確認します。
2) 次に、以下のSQLコマンドを実行します:

INSERT INTO ad_user_roles(
            ad_user_id, ad_role_id, ad_client_id, ad_org_id, isactive, created,
            createdby, updated, updatedby, ad_user_roles_uu)
    VALUES (1000002, 0, 0, 0, 'Y', now(),
            100, now(), 100, uuid_generate_v4());
Ray Lee (System Analyst)
作者 Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞