{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/434","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/434/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/434/events","html_url":"https://github.com/aws/aws-sdk-java/issues/434","id":78661042,"number":434,"title":"Missing data in the Grantee","user":{"login":"amedeiros","id":1771494,"avatar_url":"https://avatars.githubusercontent.com/u/1771494?v=3","gravatar_id":"","url":"https://api.github.com/users/amedeiros","html_url":"https://github.com/amedeiros","followers_url":"https://api.github.com/users/amedeiros/followers","following_url":"https://api.github.com/users/amedeiros/following{/other_user}","gists_url":"https://api.github.com/users/amedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/amedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amedeiros/subscriptions","organizations_url":"https://api.github.com/users/amedeiros/orgs","repos_url":"https://api.github.com/users/amedeiros/repos","events_url":"https://api.github.com/users/amedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/amedeiros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-20T19:25:59Z","updated_at":"2015-05-20T20:33:00Z","closed_at":null,"body":"We are currently switching from the Ruby SDK into the Java SDK as we are switching to Java. When getting a buckets ACL in the Ruby SDK and looking at the grantee there is a URI that we check. Here are the docs http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html#get_bucket_acl-instance_method. Under response structure and then grants -> grantee there is a URI that gets returned.\r\n```\r\n:uri => String\r\nURI of the grantee group.\r\n```\r\n\r\nThis field is not present in the Java SDK equivalent. "},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/comments/104028484","html_url":"https://github.com/aws/aws-sdk-java/issues/434#issuecomment-104028484","issue_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/434","id":104028484,"user":{"login":"hansonchar","id":719633,"avatar_url":"https://avatars.githubusercontent.com/u/719633?v=3","gravatar_id":"","url":"https://api.github.com/users/hansonchar","html_url":"https://github.com/hansonchar","followers_url":"https://api.github.com/users/hansonchar/followers","following_url":"https://api.github.com/users/hansonchar/following{/other_user}","gists_url":"https://api.github.com/users/hansonchar/gists{/gist_id}","starred_url":"https://api.github.com/users/hansonchar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansonchar/subscriptions","organizations_url":"https://api.github.com/users/hansonchar/orgs","repos_url":"https://api.github.com/users/hansonchar/repos","events_url":"https://api.github.com/users/hansonchar/events{/privacy}","received_events_url":"https://api.github.com/users/hansonchar/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T20:33:00Z","updated_at":"2015-05-20T20:33:00Z","body":"Hi  @amedeiros,\r\n\r\nActually there is no need to downcast.   You can do something like:\r\n\r\n```java\r\nAccessControlList res = ...;\r\nList<Grant> grants = res.getGrantsAsList();\r\nfor (Grant grant: grants) {\r\n  Grantee grantee = grant.getGrantee();\r\n  if (\"uri\".equals(grantee.getTypeIdentifier()) {\r\n      System.out.println(\"uri: \" + grantee.getIdentifier());\r\n  }\r\n}\r\n```\r\n"}}