google drive java api error 400 when changing file owner -
im trying change file owner, writer owner i'm still getting:
com.google.api.client.googleapis.json.googlejsonresponseexception: 400 bad request { "code" : 400, "errors" : [ { "domain" : "global", "message" : "bad request", "reason" : "badrequest" } ], "message" : "bad request" }
and here's part of source code:
//getting writer permission permission permission = service.permissions().get(fileid, permtochange.get(j)).execute(); permission.setrole("owner"); service.permissions().update(fileid, permtochange.get(j), permission).settransferownership(true).execute();
both accounts current owner , new owner has same domain. trying delete writer account, add new 1 , change ownership got same result.
Comments
Post a Comment