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.




Retrieving users from .NET API

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
chris.i2c
Replies (2)
helpful
0
not helpful

Which version of Gemini web and webservices dlls are you using?
Seems like 3.6 web services with 3.7 website.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

You're right. I pulled the latest from the Downloads section. That resolved the GetUser and GetUserByName calls, but the WhoAmI method is still returning the empty user object. Don't really need that functionality though.

Thanks for your assistance.


chris.i2c
· 1
chris.i2c