Fixed bug in getUserOrGroupId()