Create new group privileges

-if user creates group and does not have privileges for its management, he automatically becomes group manager of the newly created group.
If createdByUid == null or user not exists, skip this settings and continue without seting role.