title: Looking up a RoleArn that is attached to a Cognito Group
body: <p>I am attempting to grab the Policy document for a Users groups to look up custom Statements, but I am not sure how to do this.</p>
  
  <p>I can grab the users group via the <code>id.jwtToken</code>, and I can look up that users group and get the associated <code>RoleArn</code>, but I cant seem to find someway to look up the <code>RoleArn</code> and pull back the policy document.</p>
  
  <p>One possible way is to tap into the <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/IAM.html" rel="nofollow noreferrer"><code>AWS.IAM</code></a> and set it up that way, then I could call <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/IAM.html#getGroupPolicy-property" rel="nofollow noreferrer"><code>getGroupPolicy</code></a> to grab the <code>Policy Document</code>, but I am not sure how to set up the <code>IAM</code> constructor for this.</p>
  
  <p>So the actually ask a question:</p>
  
  <ul>
  <li>Can I use <code>AWS.Cognito</code> to look up a groups policy document? If so, how?</li>
  <li>If not, how do I correctly set up the <code>AWS.IAM</code> constructor in <code>JavaScript</code>?</li>
  </ul>
  
  <p>Thank you! </p>