Retrieving users from .NET API
Hello, I am attempting to lookup users through the GetUser and GetUserByName method, but they are returning null. I am using Windows authentication and can successfully retrieve/update issues. The UsersService.WhoAmI() method returns an empty user object, with a null username and UserId of -1. My Gemini account is configured as an administrator. I've tested with UserIds that I know are valid, as I've been able to log time for an issue by hardcoding the UserId property.
This is how I'm initializing the ServiceManager to use Windows authentication (which seems to be authenticating correctly, since I can retrieve issues):
var serviceManager = new ServiceManager("https://[our.gemini.url]", "", "", "", true);
I've also tried calling the web service directly and deserializing the response, but get the following error:
InnerException = {"Instance validation error: 'Planner' is not a valid value for ProjectPermission."}
I'd rather not have to manually parse the UserId from the xml. Any ideas why the UsersService API calls aren't working? Thanks in advance for your assistance.
Chris
chris.i2c
· 1 |
|
Thursday, November 4, 2010, 8:10:45 PM |