SharePoint Developers, I have been tasked with a new project and could use some suggestions as how best to... Project requirements:
User gets access denied page. (we do not use the SharePoint Request Access we use AD groups). I am thinking add a link on the Access Denied page to a form. Editing as noted here http://social.technet.microsoft.com/wiki/contents/articles/31253.sharepoint-2013-how-to-create-a-custom-access-denied-page.aspx.
Provide user a form to select the level of permissions from the AD Group permissions available on the site. (usually view, contribute or designer). We use AD Groups for site permissions. The form would also include a text area to specify why they need access. I would need to grab the AD Groups for the site and the site URL from SharePoint.
Then pass the logged in userID, the AD Group for the selected level of permissions, the site URL and the text area data to a stored procedure used by a permissions provisioning tool.
Has anyone built anything like this before? I am having trouble figuring out how to grab the AD groups assigned to the sites permissions and the site URL from SharePoint? Once I have that it should be fairly simple to pass the selected values from the form. Any suggestions or ideas on how to accomplish this would be appreciated.