Hi everyone, This may seem like a silly question, but are user id's and group id's expected to be the "same"? For example:
gi.users.get_users() [{u'username': u'user1', u'model_class': u'User', u'id': u'f2db41e1fa331b3e', u'email': u'XXXXX'}, {u'username': u'user2', u'model_class': u'User', u'id': u'f597429621d6eb2b', u'email': u'XXXXX'}]
gi.groups.get_groups() [{u'url': u'/api/groups/f2db41e1fa331b3e', u'model_class': u'Group', u'id': u'f2db41e1fa331b3e', u'name': u'group1'}, {u'url': u'/api/groups/f597429621d6eb2b', u'model_class': u'Group', u'id': u'f597429621d6eb2b', u'name': u'group2'}]
This is just a dev instance I set up really quick, so these are the first two users/groups I've created. If this is expected behavior I'll carry on, just seems odd to me. Thanks! -Rob -- Rob Lemley Systems Administrator - CIRC University of Rochester
Hi Rob, especially on a new Galaxy they tend to because every Galaxy table has its own id series which is in turn encoded with the same secret. So when you create your first user and your first group, they will have the same id (1). Same with first history, first dataset etc. iow: Galaxy objects do not have unique IDs in the whole Galaxy, just within the object group. Hope this helps. Martin On Mon, Apr 24, 2017 at 3:44 PM Lemley, Rob <rob.lemley@rochester.edu> wrote:
Hi everyone,
This may seem like a silly question, but are user id's and group id's expected to be the "same"?
For example:
gi.users.get_users() [{u'username': u'user1', u'model_class': u'User', u'id': u'f2db41e1fa331b3e', u'email': u'XXXXX'}, {u'username': u'user2', u'model_class': u'User', u'id': u'f597429621d6eb2b', u'email': u'XXXXX'}]
gi.groups.get_groups() [{u'url': u'/api/groups/f2db41e1fa331b3e', u'model_class': u'Group', u'id': u'f2db41e1fa331b3e', u'name': u'group1'}, {u'url': u'/api/groups/f597429621d6eb2b', u'model_class': u'Group', u'id': u'f597429621d6eb2b', u'name': u'group2'}]
This is just a dev instance I set up really quick, so these are the first two users/groups I've created. If this is expected behavior I'll carry on, just seems odd to me.
Thanks!
-Rob -- Rob Lemley Systems Administrator - CIRC University of Rochester
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/
participants (2)
-
Lemley, Rob
-
Martin Čech