This project has moved. For the latest updates, please go here.

This is one of those 'Is it possible?' questions.

Jun 25, 2014 at 12:40 AM
I was looking through your blogs, Marc, and found the bit where you check 'Determining if a User Is in a Permission Group with SharePoint’s Web Services'

That got me thinking, that maybe I could use SPServices to check if a user had permissions to at least view a document. Is this something that is possible with SPServices in their current iteration? If so, could you point me in the correct direction. I'm completely stumped at this point.

And if not, is there a direction you can point me in?

One catch, is that I'm being forced by my client to use Active Directory Security Groups with SharePoint Online for all of the user permissions. Basically they have put the users in Security Groups in AD, and then put them into various SharePoint Groups. Simply put, various documents in the site have permissions restricted only be visible to specific SharePoint Groups (with AD Security Groups inside them).

I need to basically check if the currentUser has read permissions for one of those documents when they come to a page with one of the documents linked to it. If the user has permissions nothing happens, if they don't then they are presented with a button to request access to the AD Security Group.

Cheers for any help at all.
Jun 25, 2014 at 2:50 AM
If a user doesn't have access to a document, then they also can't tell that the document is there. This means that it's impossible to check whether the current user has permission to a document they don't have permission to!

Jun 25, 2014 at 4:22 PM
That makes sense. And with all the researching I've been doing it makes sense. Thank you for your response, hopefully having word from a person with your level of experience will suffice for my client to change this ask.

Excited Designer