def get_user(self, brl_user):
        try:
            user = self.store.read_user(brl_user)
        except NotInStoreException:
            raise NotFoundException()
        if not user.active:
            raise NotFoundException()
        # Not propagate sensible information
        user.staff = None
        user.last_api_call = None
        user.active = None
        user.confirmation_token = None
        user.joined_date = None
        user.confirmation_date = None

        auth_blocks = {}
        # Read all blocks and filter private ones
        for brl_block, block_meta in user.blocks.iteritems():
            try:
                block_access = self.store.read_block_permissions(brl_block)
                self.security.check_read_block(brl_block)
                # block_meta => ([tags], description, bytes)
                block_meta.append(block_access.is_private)
                auth_blocks[brl_block] = block_meta
            except ForbiddenException:
                pass
        user.blocks = auth_blocks

        return user
Retrieve user information
dataset/ETHPy150Open biicode/bii-server/user/user_service.py/UserService.get_user