グループの管理
でのグループの管理JMPライブグループには独自のユーザーと管理者のサブセットがあるため、別の課題が生じます。 システム管理者はグループ管理者ですが、グループ管理者は必ずしもシステム管理者である必要はありません。 システム管理者は、サーバー内に含まれるすべてのグループにすぐに追加されるわけではありません。 ただし、自分が属していないグループを表示および管理することはできます。
A view of the available options in the Posts tab, showing all published reports when a group is opened in JMP Live.A view of the available options in the Posts tab, showing all published reports when a group is opened in JMP Live.A view of the available options in the Posts tab, showing all published reports when a group is opened in JMP Live.A view of the available options in the Posts tab, showing all published reports when a group is opened in JMP Live.「投稿」タブで利用可能なオプションのビュー。JMP Live でグループを開いたときに公開されたすべてのレポートが表示されます。
次の手順では、自分が属していないグループを表示する方法と、グループのすべての設定にアクセスする方法を示します。
- 「管理」タブの「グループ」セクションに移動して、サーバー内に作成されたすべてのグループを表示します。
- 「グループ名」をクリックして、目的のグループを選択します。
- 「グループの管理」タブを表示します。 管理者は次のことができます。
- 権限を編集して、ユーザーの投稿の公開と削除の権限を変更したり、管理者としてのユーザーのステータスを変更したりできます。
- 新しいメンバーをグループに追加するには、「メンバーを追加」を選択します。
- 「投稿」タブを選択します。 これには、このグループに発行されたすべてのレポートが表示されます。 管理者は、レポートを表示および管理できます (「ユーザー レポートの管理」セクションを参照)。
- 右上の「参加」ボタンを選択してグループに参加します。
- 右上の […] ボタンを選択して、次のアクションを実行します。
- メンバーを追加します。
- グループを編集して、次の 3 つの設定を変更します。
- グループ名を変更します。
- グループの説明を変更します。
- グループ タイプを変更し、4 つの異なるタイプのグループの中から選択します。各グループは、「グループの編集」ウィンドウの右側のボックスで定義されます。
- グループを削除します。
A display of the Manage Group tab for a group, with various permissions available that can be edited for each user. The group admin is indicated by the Crown symbol.A display of the Manage Group tab for a group, with various permissions available that can be edited for each user. The group admin is indicated by the Crown symbol.A display of the Manage Group tab for a group, with various permissions available that can be edited for each user. The group admin is indicated by the Crown symbol.A display of the Manage Group tab for a group, with various permissions available that can be edited for each user. The group admin is indicated by the Crown symbol.グループの「グループの管理」タブの表示。ユーザーごとに編集できるさまざまな権限が表示されます。 グループ管理者は王冠の記号で示されます。
グループ管理者は、上記と同じ手順を使用して同じ設定にアクセスできますが、手順 1 と 2 を次の手順に置き換えます。
- [グループ] タブに移動すると、管理者ではないグループも含め、自分が属しているすべてのグループが表示されます。
- 自分がグループの管理者であるかどうかを確認するには、グループ名をクリックします。 管理者でない場合は、そのグループの設定を変更することはできません。
グループ管理者を割り当てる方法は 3 つあります。
- システム管理者は、グループ内のユーザーの権限を変更して、そのユーザーをグループ管理者にします。
- グループ管理者は、グループ内のユーザーの権限を変更して、そのユーザーをグループ管理者にします。
- グループ所有者 (グループを作成したユーザー) は、自分の権限をグループ管理者に設定できます。
トリック #4: JSL コードを使用してユーザー権限を編集する
システム/グループ管理者は、JMP Live の REST API と JMP Live の HTTP Request() 関数を併用して、管理アクションのスクリプトを作成することもできます。
添付されたスクリプト ( JMP ライブ ログイン.jsl)管理者にログインするために使用されます。 このプロセスには次の 4 つの情報が必要です。
- JMP ライブ URL - 8 行目
- API キー - 9 行目
- ユーザー名 - 10行目
- パスワード - 11行目
ログインすると、以下のコードはスクリプト化できる管理アクションの例を示します。
// --------------------------------------------------
// Get a list of all the groups and generate a table with all the groups
// --------------------------------------------------
request << reset( Url( webJMPUrl || "/api/groups/?all_groups=true" ), Method( "GET" ), Insecure );
data = request << Send;
dt2 = JSON To Data Table( data );
// --------------------------------------------------
// Add a member to a group with the following permissions:
// “allow_publish” – can this user publish to this group?
// “allow_delete” – can user delete content published by other members?
// “allow_admin” – can user add, delete and change permissions of group members?
// --------------------------------------------------
request << reset(
Url( webJMPUrl || "/api/groups/" || Char( Group ID number ) || "/members" ),
Method( "POST" ),
Form( Fields( ["uid" => user’s id number, "allow_publish" => 1, "allow_delete" => 1, "allow_admin" => 1] ) ),
Insecure
);
data = request << Send;
// --------------------------------------------------
// Change permissions
// --------------------------------------------------
request << reset(
Url( webJMPUrl || "/api/groups/" || Char( Group ID Number ) || "/members/" || Char( User ID Number ) ),
Method( "PATCH" ),
Form( Fields( ["allow_publish" => 1, "allow_delete" => 0, "allow_admin" => 0] ) ),
Insecure
);
data = request << Send;
// --------------------------------------------------
// Delete a member from a group
// --------------------------------------------------
request << reset(
Url( webJMPUrl || "/api/groups/" || Char( Group ID Number ) || "/members/" || Char( User ID Number ) ),
Method( "Delete" ), Insecure
);
data = request << Send;
編集者注:読んだことがありますかJMP Live 管理者向けテクニック シリーズの他の記事?