Refactored getting the access type for a group.
Fixed & Refactored the code to get the Group access type.
Removed dependencies on deprecated function.