Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




GET/api/users.ashx/users/username/{username} returning myself

api

We're using NTLM authentication so I authenticate during the request rather than via the URL/headers.

Most of the functionality has eventually worked after some tweaking and figuring out of the schema however I'm having trouble getting the "GetUserByName" working.

GetUser works fine, but whatever I pass to GetUserByName I always get my account back :-p.

Our usernames include the domain name so "domain\username" and I'm not sure if this is causing the issue? I tried sending the '\' as %5C but that didn't make a difference.

I'm gonna see if I can get a test account set up on our domain so I can try authenticating with that and see if that comes back instead of my account (to prove it's returning the user that's authenticating).

And as I said, GetUser and GetUsers work fine.

This is version v3.5.4 (Build 2435) and I'm using PHP via REST.

light2
· 1
light2
Replies (9)
helpful
0
not helpful

Did a quick test via .NET and it's behaving similarily except falling over when I try to send 'domain\username'; passing just username doesn't get my result but does return myself as is happening via rest.


light2
· 1
light2
helpful
0
not helpful

Created a test user account in gemini and tried getting the details of that - this time no error, but still returning my own user details not the one I'm passing in the function.


light2
· 1
light2
helpful
0
not helpful

We are investigating and will let you know ASAP.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

This is a bug: http://gemini.countersoft.com/Default.aspx?p=2&i=3333, which will be fixed for 3.6.
Thank you for bringing it to our attention.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Is there anyway in the meantime until we upgrade to get the users list quickly?

I''m after the username and id, but using getUsers takes about a minute to return the result containing everything.


light2
· 1
light2
helpful
0
not helpful

We have about 300 users and each has access to a bunch of projects so I think this is why the resulsts are taking so long, each user contains a list of projects and project details - lots and lots of repetitive information.


light2
· 1
light2
helpful
0
not helpful

We know about this issue and have fixed it for 3.6. You can now get just the user entity which will make getusers run in less than 2 seconds.

What you can do is create another Forms authentication Gemini site to get the user by name.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Nevermind; I've extracted the data I need and am just using that directly - the user list is pretty static :-p


light2
· 1
light2
helpful
0
not helpful

Ah cool; Good good :-D


light2
· 1
light2