@@ -130,7 +130,7 @@ def update(self, id, body):
130
130
return self .client .patch (self ._url (id ), data = body )
131
131
132
132
def list_roles (self , id , page = 0 , per_page = 25 , include_totals = True ):
133
- """Get a user's roles .
133
+ """List the roles associated with a user.
134
134
135
135
Args:
136
136
id (str): The user's id.
@@ -154,7 +154,7 @@ def list_roles(self, id, page=0, per_page=25, include_totals=True):
154
154
return self .client .get (url , params = params )
155
155
156
156
def remove_roles (self , id , roles ):
157
- """Removes roles from a user.
157
+ """Removes an array of roles from a user.
158
158
159
159
Args:
160
160
id (str): The user's id.
@@ -168,7 +168,7 @@ def remove_roles(self, id, roles):
168
168
return self .client .delete (url , data = body )
169
169
170
170
def add_roles (self , id , roles ):
171
- """Assign roles to a user
171
+ """Associate an array of roles with a user.
172
172
173
173
Args:
174
174
id (str): The user's id.
@@ -182,7 +182,7 @@ def add_roles(self, id, roles):
182
182
return self .client .post (url , data = body )
183
183
184
184
def list_permissions (self , id , page = 0 , per_page = 25 , include_totals = True ):
185
- """Get a user's permissions.
185
+ """List the permissions associated to the user .
186
186
187
187
Args:
188
188
id (str): The user's id.
@@ -211,7 +211,7 @@ def remove_permissions(self, id, permissions):
211
211
Args:
212
212
id (str): The user's id.
213
213
214
- permissions (list of str): A list of permissions ids to unassociate from the user.
214
+ permissions (list of str): A list of permission ids to unassociate from the user.
215
215
216
216
See https://auth0.com/docs/api/management/v2#!/Users/delete_permissions
217
217
"""
@@ -220,12 +220,12 @@ def remove_permissions(self, id, permissions):
220
220
return self .client .delete (url , data = body )
221
221
222
222
def add_permissions (self , id , permissions ):
223
- """Assign permissions to a user
223
+ """Assign permissions to a user.
224
224
225
225
Args:
226
226
id (str): The user's id.
227
227
228
- permissions (list of str): A list of permissions ids to associated with the user.
228
+ permissions (list of str): A list of permission ids to associated with the user.
229
229
230
230
See https://auth0.com/docs/api/management/v2#!/Users/post_permissions
231
231
"""
0 commit comments