+ Start a Discussion

Apex Sharing Rules



  I am using Apex Sharing rules and i want to find out the Type( if the UserGroupid is a User or a Group) of the UserGroupId. Is there any way to get the Type along with the Sharing Query ?


Object__Share == [Select Id, UserOrGroupId, Type from Object__Share  where ParentId = 'xxxx' and UserOrGroupId = 'yyyy'];


is there a way to identofy the Type. I know i can do the query search and find out if it is Usre or Type.