Sunday, August 25, 2019

Configure Gmail as SMTP for SharePoint 2016 server to relay messages

Leave a Comment
This blog post is about configuring gmail as smtp for SharePoint 2013/2016/2019 to relay email messages on behalf of SharePoint. First of all we need to configure SMTP server on Windows server (Currently I am using Windows Server 2016 Standard) If IIS Manager 6 feature/role isn't setup first we need to set it up from Add server roles & features. Once configured, open IIS 6 Manager and right click on SMTP Virtual server and click...
Read More

Wednesday, August 7, 2019

SharePoint: How to verify current logged in user belong to which SharePoint Group

Leave a Comment
There was a scenario, we during our development cycle faced multiple time that we need to verify currently logged in user in SharePoint for its role or SharePoint Group. As based on role we have different business rules & business process automation. So following is server side code for verifying currently logged in user (either Active directory based or form based authtentication) belong to which SharePoint Group: //Let user be authenticated first into SharePoint SPClaimsUtility.AuthenticateFormsUser(      ...
Read More