modify_user
既存のEnterprise Manager管理者を変更します。
書式
標準モード
emcli modify_user -name="name" [-password="password"] [-type="type of user"] [-roles="role1;role2;..." [-email="email1;email2;..."] [-privilege="name[;secure-resource-details]]"] [-separator="privilege="sep_string""] [-subseparator="privilege="subsep_string""] [-profile="profile_name"] [-desc="user_description"] [-expired="true/false"] [-prevent_change_password="true/false"] [-department="department_name"] [-cost_center="cost_center"] [-line_of_business="line_of_business"] [-contact="contact"] [-location="location"]
インタラクティブまたはスクリプト・モード
modify_user( name="name" [,password="password"] [,type="type of user"] [,roles="role1;role2;..."] [,email="email1;email2;..."] [,privilege="name[;secure-resource-details]]"] [,separator="privilege="sep_string""] [,subseparator="privilege="subsep_string""] [,profile="profile_name"] [,desc="user_description"] [,expired="true/false"] [,prevent_change_password="true/false"] [,department="department_name"] [,cost_center="cost_center"] [,line_of_business="line_of_business"] [,contact="contact"] [,location="location"] ) [ ] indicates that the parameter is optional
オプション
-
name
管理者名。
-
password
管理者パスワードを指定されたパスワードに置き換えます。
-
type
指定したタイプのユーザーに変換します。このパラメータで使用可能な値は、EM_USER、EXTERNAL_USERおよびDB_EXTERNAL_USERです。このパラメータのデフォルト値はEM_USERです。
-
roles
現在のロールを、この管理者に付与する指定されたEnterprise Managerロールのリストに置き換えます。現在、組込みロールとしてPUBLICが含まれています。
-
email
この管理者の現在の電子メール・アドレスを指定されたリストに置き換えます。この管理者のすべての電子メール・アドレスを削除するには、空の文字列を指定します。
-
privilege
この管理者に付与する権限。このオプションは、複数回指定できます。<secure_resource_details>は次のように指定します。
resource_guid|[resource_column_name1=resource_column_value1[:resource_column_name2=resource_column_value2]..]"
リソース情報を必要としないSYSTEM権限のリストを取得するには、次のemcliコマンドを実行します。
emcli get_supported_privileges -type=SYSTEM
権限の完全なリストおよびリソース列名を取得するには、次のコマンドを実行します。
emcli get_supported_privileges
TARGET権限のリストを取得するには、次のemcliコマンドを実行します。
emcli retrieve -type=TARGET
ジョブ権限のリストを取得するには、次のemcliコマンドを実行します。
emcli get_supported_privileges -type=JOB
-
separator
-privilegeオプションの値で、名前と値のペアを区切る文字列デリミタを指定します。デフォルトのセパレータ・デリミタは「;」です。
-
subseparator
-privilegeオプションの値で、各名前と値のペアの名前と値を区別する文字列デリミタを指定します。デフォルトのセパレータ・デリミタは「:」です。
-
profile
データベース・プロファイル名。デフォルトのプロファイル名としてDEFAULTを使用します。
-
desc
変更されるユーザーに関するユーザー説明。
-
expired
有効な値はtrueまたはfalseです。このオプションを使用すると、パスワード期限が即座に切れます。デフォルトはfalseです。
-
prevent_change_password
有効な値はtrueまたはfalseです。trueに設定すると、独自のパスワードを変更できなくなります。デフォルトはfalseです。
-
department
管理者の部署の名前。
-
cost_center
組織内の管理者のコスト・センター。
-
line_of_business
管理者の部門。
-
contact
管理者の連絡先情報。
-
location
管理者の場所。
終了コード
正常終了した場合は0。0以外の値は、verb処理が正常終了しなかったことを示します。
例
例1
この例では、new_admin
管理者を変更します。ユーザーには、ID 923470234ABCDFE230184947530911111
のジョブを表示する権限とターゲットhost1.example.com:host
を表示する権限の2つの権限があります。ユーザーにはロールPUBLIC
も付与されます。ユーザーの電子メール・アドレスはfirst.last@example.com
とjoe.shmoe@shmoeshop.com
に設定されます。
emcli modify_user -name="new_admin" -password="oracle" -email="first.last@example.com;joe.shmoe@shmoeshop.com" -roles="public" -privilege="view_job;923470234ABCDFE230184947530911111" -privilege="view_target;host1.example.com:host"
例2
この例では、管理者new_admin
からすべての電子メール・アドレスと権限を削除します。UNIXシェルのコマンドラインで指定する場合、-privilege=""
と-privilege
は同じです。
emcli modify_user -name="new_admin" -email=" -privilege=""