문제

i have a use case to move a user from one Organization to another. The Api i am using is provisioning API. Managing Org Users gave an example for lab. Can anybody please share more info on what jar's need to be used to implement this. My rest of code is able to manage the other user functionallity. My Code is in java I am using jars gdata-appsforyourdomain, gdata-client, gdata-core and gdata-collect. These jars dont have any API's to manage the organizations with users. It would be great help if any one can share docs or any sample data on this use-case. Thanks

도움이 되었습니까?

해결책

I was able to figure out the way by going through the source code of the labs and deployed the same.

AppsPropertyService service=new AppsPropertyService(applicationName);
          service.setUserCredentials(adminUserName,Password);
          GenericEntry entry = new GenericEntry();
          entry.addProperty("oldOrgUnitPath",oldOrg);
          entry.addProperty("orgUnitPath", newOrg);
      service.update(new URL("https://www.google.com/a/feeds/orguser/2.0/"+cutomerId+"/"+MailIdofUserToBeMoved), entry);

customerid- is the unique key of the admin.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top