Hi,
We are adding users to SharePoint 2013 site custom groups throught scripts and programmatically. After adding users the users successfully to custom groups, these users are not able to login to our SharePoint site. They receice the “Sorry, this site hasn't been shared with you” message.
For the same user if I remove from the group and add manually to SharePoint custom group, that time the user is able to login.
Additional Information:
1. SharePoint Business Intelligence Center site template using
2. Visual Studio 2012, Windows Server 2012, SharePoint 2012 Server
Appreciate your valuable time!
Regards
Seva