Python-keystoneclient roles_for_user, add_user_role & remove_user_role function
Dear all,
I've trace python-
There have 3 functions that I have some question.
First of all, the "add_user_role" function comment said that
"If tenant is specified, the role is added just for that tenant, otherwise the role is added globally."
and the function is "def add_user_role(self, user, role, tenant=None):"
I saw that tenant args could be NONE, but when I wrote
>>> from keystoneclient.v2_0 import client
>>> auth = client.
>>>auth.
It gave me a error message:
HTTPNotImplemented: User roles not supported: tenant_id required (HTTP 501)
Why?
Thanks for anyone to help me solve this question :D
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Joseph Heck
- Solved:
- Last query:
- Last reply: