Adding code for Sharing of permission feature.