(self)
return [x.get('name', '') for x in groups]
Property that returns the groups the user belongs to.
Property that returns the groups the user belongs to.
Property that returns the groups the user belongs to .
def groups(self):
        """Property that returns the groups the user belongs to."""
        data = self._get_data()
        groups = data.get('groups', [])
        return [x.get('name', '') for x in groups]
def groups ( self ) : data = self . _get_data ( ) groups = data . get ( 'groups' , [ ] ) return [ x . get ( 'name' , '' ) for x in groups ]