<div dir="ltr"><div><div><div><div>Hello,<br><br></div>Sorry but there is a errata in this piece:<br><pre>u = kvm.users.get(id=userid)
for perm in u.permissions.list():
udc = perm.get_data_center()
if udc:
globaldc = kvm.datacenters.get(id=udc.get_id())
if globaldc.get_name() == dc:
perm.delete()</pre>The perm.delete() call is not correct and you need to put the following two lines:<br><br> permission_service = permissions_service.permission_service(id=<a href="http://data_center_permission.id">data_center_permission.id</a>)<br> permission_service.remove()<br><br></div>Of course you need:<br><br> permissions_service = system_service.permissions_service()<br><br></div>Thanks and sorry for the errata<br></div>Manuel<br></div>