GET/api/users.ashx/users/username/{username} returning myself
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 |
|
Wednesday, November 4, 2009, 11:32:41 AM |
0
|
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. |
||||
|
0
|
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. |
||||
|
0
|
We are investigating and will let you know ASAP. |
||||
|
0
|
This is a bug: http://gemini.countersoft.com/Default.aspx?p=2&i=3333, which will be fixed for 3.6. |
||||
|
0
|
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. |
||||
|
0
|
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. |
||||
|
0
|
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. |
||||
|
0
|
Nevermind; I've extracted the data I need and am just using that directly - the user list is pretty static :-p |
||||
|
0
|
Ah cool; Good good :-D |
||||
|