Browse Source

Merge pull request #890 from onesuper/odps-auth

odps-auth: add desc role
Leandro Ostera 8 years ago
parent
commit
ee752c401e
1 changed files with 13 additions and 9 deletions
  1. 13 9
      pages/common/odps-auth.md

+ 13 - 9
pages/common/odps-auth.md

@@ -1,10 +1,6 @@
 # odps auth
 
-> Manage authorities in ODPS (Open Data Processing Service).
-
-- Show authorities of a user:
-
-`show grants for {{user_name}};`
+> User authorities in ODPS (Open Data Processing Service).
 
 - Add a user to the current project:
 
@@ -14,14 +10,22 @@
 
 `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 role to a user:
+- Grant a set of authorities to a role:
 
-`grant {{role_name}} to {{user_name}};`
+`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`
 
-- Grant a set of authorities to a user role:
+- Describe authorities of a role:
 
-`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`
+`desc role {{role_name}};`
+
+- Grant a role to a user:
+
+`grant {{role_name}} to {{user_name}};`