X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fkeystone.py;h=1ebb94e627a534fcdb83e0cfc692e19061eda63b;hb=98a6cc5f8f38a950bbf7c27b41f5422badb382fa;hp=f5732bcce6737b78317ec5ec27e2bbdad61e0232;hpb=264c655ccf55097ffee7afdc6ac612da242b6aaf;p=osm%2FMON.git diff --git a/osm_mon/core/keystone.py b/osm_mon/core/keystone.py index f5732bc..1ebb94e 100644 --- a/osm_mon/core/keystone.py +++ b/osm_mon/core/keystone.py @@ -68,6 +68,16 @@ class KeystoneConnection: """ return self.keystone_client.projects.list(user=user_id) + def getUsers(self): + """ + Grabs users from keystone using the client and session build in the constructor + """ + domain_list = self.keystone_client.domains.list() + users = [] + for domain in domain_list: + users.extend(self.keystone_client.users.list(domain=domain.id)) + return users + def getUserById(self, user_id): """ Grabs user object from keystone using user id