How to get User details using Team Foundation Server (TFS) java SDK -
i trying access tfs user details(profile details) user performed activities in tfs server. getting user display name using 'assigned to' or 'created by' fields.
i trying user identity using following code.
iidentitymanagementservice identitymanagementservice = (iidentitymanagementservice)tpc.getconfigurationserver().getwebservice(identitymanagementservice.class); teamfoundationidentity userid = identitymanagementservice.readidentity(identitysearchfactor.display_name, "chunky garg", membershipquery.direct, readidentityoptions.extended_properties);
using above code end in following exception
exception in thread "main" com.microsoft.tfs.core.config.webservice.unknownwebserviceexception: unknown web service: [com.microsoft.tfs.core.clients.webservices.identitymanagementservice] @ com.microsoft.tfs.core.config.webservice.defaultwebservicefactory.newwebservice(defaultwebservicefactory.java:226) @ com.microsoft.tfs.core.tfsconnection.getwebservice(tfsconnection.java:891) @ tfs.tfstest.main(tfstest.java:93) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ com.intellij.rt.execution.application.appmain.main(appmain.java:134)
please let me know if bug java sdk or doing wrong.
tfs version - using cloud version java sdk - 12.0.2 os : macosx
Comments
Post a Comment