title: SharePoint - How to identify whether a user has granted direct permissions or through a group?
body: <p>I want to find whether a user in a site has been granted permissions directly or he is inheriting permissions from a group. How can I do that using SharePoint object model?</p>