Sunday, May 25, 2008 4:39 PMHi,
I'm trying to get a list of all users who have a certain access level (read, write etc) to an account.
I have tried to use a RetrieveSharedPrincipalsAndAccessRequest, but with only partial luck. The SDK states that RetrieveSharedPrincipalsAndAccess is used to:
Contains the data needed to retrieve all of the security principals (users or teams) that have access to a lead and their access rights for the specified entity.
Although they state "lead", there is a Target property in which the target is specified, and that does not have to be an lead.
My problem is that using the message described, I only get the users/teams who have been given access to the account by sharing. Users who have access through their role are not returned.
Is there a better way of doing this? I been looking at the database but I'm not that good at SQL, any suggestions there?
Monday, May 26, 2008 10:34 AMModeratorfor this use http://microsoftcrm3.blogspot.com/2008/01/hide-tab-button-base-on-security-role.html
Monday, May 26, 2008 11:00 AM
thank you for your reply. But knowing if the current user have a certain security role doesn't solve my issue.
I want to get a list of users who have access to a certain account. E.g. who have access to an account called Fabrikam Ltd and which kind of access do they have?
Currently, I'm retrieving all active users and then checking each user's permissions using a RetrievePrincipalAccessRequest. This is working, but I was hoping there would be a more elegant solution.