Identity/OrganizationSecurityIdentity.php
protected static function getOrganizationGroups(OrganizationUserInterface $user)
    {
        $sids = [];
        $orgName = $user->getOrganization()->getName();

        if ($user instanceof GroupableInterface) {
            foreach ($user->getGroups() as $group) {
                if ($group instanceof GroupInterface) {
                    $sids[] = new GroupSecurityIdentity(ClassUtils::getClass($group), $group->getName().'__'.$orgName);
                }
            }
        }

        return $sids;
    }
protected static function getOrganizationGroups(OrganizationUserInterface $user)
    {
        $sids = [];
        $orgName = $user->getOrganization()->getName();

        if ($user instanceof GroupableInterface) {
            foreach ($user->getGroups() as $group) {
                if ($group instanceof GroupInterface) {
                    $sids[] = new GroupSecurityIdentity(ClassUtils::getClass($group), $group->getName().'__'.$orgName);
                }
            }
        }

        return $sids;
    }
protected static function getOrganizationGroups ( OrganizationUserInterface $ user ) { $ sids = [ ] ; $ orgName = $ user -> getOrganization ( ) -> getName ( ) ; if ( $ user instanceof GroupableInterface ) { foreach ( $ user -> getGroups ( ) as $ group ) { if ( $ group instanceof GroupInterface ) { $ sids [ ] = new GroupSecurityIdentity ( ClassUtils :: getClass ( $ group ) , $ group -> getName ( ) . '__' . $ orgName ) ; } } } return $ sids ; }
Get the security identities for organization groups of user.

@param OrganizationUserInterface $user The organization user

@return GroupSecurityIdentity[]
Get the security identities for organization groups of user .