ユーザーを組織単位に追加し、ディレクトリ API を使用してユーザー ID で組織単位情報を取得するにはどうすればよいですか?
このようなものですか?
List<OrgUnit> list = new ArrayList<OrgUnit>();
OrgUnit ou= new OrgUnit();
ou.setName(orgunit);
getDirectoryService().orgunits().insert(username, ou).execute();
と
OrgUnit ou = getDirectoryService().orgunits().get(userid, list).execute();