"Third-party disk applications are disabled in domain policy"

For some domains, our application does not work. I checked their Google Apps domain setup and Google Drive is enabled. Any ideas?

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 OK
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "location" : "Authorization",
    "locationType" : "header",
    "message" : "The domain policy has disabled third-party Drive apps",
    "reason" : "domainPolicy"
  } ],
  "message" : "The domain policy has disabled third-party Drive apps"
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:143)
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:187)
    at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:279)
    at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:207)
    at com.google.api.services.drive.Drive$Files$Insert.executeUnparsed(Drive.java:307)
    at com.google.api.services.drive.Drive$Files$Insert.execute(Drive.java:331)

      

+3


source to share


1 answer


Even though Google Drive is enabled for users, an administrator can prevent users from installing Google Drive apps or using the Google Drive API by going to Apps> Google Apps> Drive Settings and then unchecking the "Allow users to install Google Drive Apps" checkbox under Data Access menu.

The error message you see indicates that these domains do not have "Allow users to install apps for Google Drive" installed. Your application should handle this error by presenting a message to the user along the lines:



Sorry, you cannot use this application because your administrator has disabled 3rd party Google Drive apps. Please ask your administrator to allow Google Drive apps by opening the Google Apps control panel and going to Apps > Google Apps > Settings for Drive and making sure "Allow users to install Google Drive apps" in the "Data Access" menu is enabled.

+10


source







All Articles