Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenStack Grizzly keystone remove_user command removing ALL users

I have the following code that works great in Folsom:

-- remove the user for each role associated with the user

user_roles = kc.users.list_roles(obj_id, currtenant)
for role in user_roles:
    if obj_id == user.id:
        kc.tenants.remove_user(currtenant, obj_id, role.id)

That same code will remove ALL users rather than just the user with the id, obj_id from the tenant specified. anyone else have this issue in Grizzly?

OpenStack Grizzly keystone Keystone remove_user command removing ALL usersusers not just the specified ones

I have the following code that works great in Folsom:

-- remove the user for each role associated with the user

user_roles = kc.users.list_roles(obj_id, currtenant)
for role in user_roles:
    if obj_id == user.id:
        kc.tenants.remove_user(currtenant, obj_id, role.id)

That same code will remove ALL users rather than just the user with the id, obj_id from the tenant specified. anyone else have this issue in Grizzly?

click to hide/show revision 3
retagged

Keystone remove_user command removing ALL users not just the specified ones

I have the following code that works great in Folsom:

-- remove the user for each role associated with the user

user_roles = kc.users.list_roles(obj_id, currtenant)
for role in user_roles:
    if obj_id == user.id:
        kc.tenants.remove_user(currtenant, obj_id, role.id)

That same code will remove ALL users rather than just the user with the id, obj_id from the tenant specified. anyone else have this issue in Grizzly?