title: Azure Graph API - Check if user has full access to an O365 mailbox
body: <p>I am using the <a href="https://www.nuget.org/packages/Microsoft.Azure.ActiveDirectory.GraphClient/" rel="nofollow">ActiveDirectory GraphClient</a> library by Microsoft to access an Azure AD.</p>
  
  <p><strong>My problem is:</strong></p>
  
  <p>I'd like to get to known if an <strong>IUser object</strong> has full access to an Office 365 mailbox of another user.</p>
  
  <pre><code>void bool HasFullAccess(IActiveDirectoryClient client, IUser currentUser, IUser otherUser)
  {
      if (currentUser.ObjectId == otherUser.ObjectId)
      {
          return true;
      }
  
      //TODO: HOW-TO CHECK IF 'currentUser' HAS FULL ACCESS
      //      TO MAILBOX OF 'otherUser'
  }
  </code></pre>