خرید بک لینک

Vote count: 0

I am trying to patch my organization info with Directory Api but when i am try to update the department for my user, is not updated, the request is fine with status code 200 but i caot see my changes in my user profile, i can change my FamilyName field without any problem but others fields doesn't work:

Example:

 UserOrganization org = new UserOrganization();

            User entry = new User();

            org.setDepartment("my Department");
            UserName name = new UserName();
            name.setFamilyName("dobles");
            System.out.println(name);
            System.out.println(org);
            entry.setName(name);
            entry.setOrganizations(org);

            System.out.println(entry);

            service = getDirectoryService();
            //Directory.Users.Update update = service.users().update(user.getId(),entry);
            Directory.Users.Patch myUser = service.users().patch(user.getId(), entry);
 User myUpdatedUser = myUser.execute();

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 16 ارديبهشت 1395 ساعت: 0:44

صفحه بندی