From e9fe30d3293f1446f79e1a879b0ce05e01f12150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E4=BA=A6=E8=B6=85=28=E4=BD=95=E5=85=AE=29?= Date: Mon, 16 May 2016 09:43:04 +0800 Subject: [PATCH 1/2] odps-auth: add desc role Change-Id: I76664ed2070a2367071e25a1640dbf0055721ae6 --- pages/common/odps-auth.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/odps-auth.md b/pages/common/odps-auth.md index d547f6dfa..ee742b72b 100644 --- a/pages/common/odps-auth.md +++ b/pages/common/odps-auth.md @@ -1,6 +1,6 @@ # odps auth -> Manage authorities in ODPS (Open Data Processing Service). +> User authorities in ODPS (Open Data Processing Service). - Show authorities of a user: @@ -18,10 +18,14 @@ `create role {{role_name}};` +- Describe authorities of a role: + +`desc role {{role_name}};` + - Grant a role to a user: `grant {{role_name}} to {{user_name}};` -- Grant a set of authorities to a user role: +- Grant a set of authorities to a role: `grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};` From b75e25a7fb6ef0e70e0ebed63583703fb88a6811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E4=BA=A6=E8=B6=85=28=E4=BD=95=E5=85=AE=29?= Date: Mon, 16 May 2016 15:17:01 +0800 Subject: [PATCH 2/2] odps-auth: reorder commands Change-Id: I58c9b5451853171cd5d084877576f606068d1984 --- pages/common/odps-auth.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/common/odps-auth.md b/pages/common/odps-auth.md index ee742b72b..433ccbeb2 100644 --- a/pages/common/odps-auth.md +++ b/pages/common/odps-auth.md @@ -2,10 +2,6 @@ > User authorities in ODPS (Open Data Processing Service). -- Show authorities of a user: - -`show grants for {{user_name}};` - - Add a user to the current project: `add user {{user_name}};` @@ -14,10 +10,18 @@ `grant {{action_list}} on {{object_type}} {{object_name}} to user {{user_name}};` +- Show authorities of a user: + +`show grants for {{user_name}};` + - Create a user role: `create role {{role_name}};` +- Grant a set of authorities to a role: + +`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};` + - Describe authorities of a role: `desc role {{role_name}};` @@ -25,7 +29,3 @@ - Grant a role to a user: `grant {{role_name}} to {{user_name}};` - -- Grant a set of authorities to a role: - -`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`