def remove_restriction(self, *usergroups):
if usergroups:<EOL><INDENT>allowed = copy.copy(self._raw.get('<STR_LIT>', []))<EOL>for usergroup in usergroups:<EOL><INDENT>if not isinstance(usergroup, UserGroup):<EOL><INDENT>raise TypeError('<STR_LIT>'.format(usergroup))<EOL><DEDENT>try:<EOL><INDENT>allowed.remove(usergroup.as_usergroup_selection())<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(usergroup, self))<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>allowed = []<EOL><DEDENT>self._raw['<STR_LIT>'] = allowed<EOL>
Remove UserGroup(s) from list of accounts with access to record

        .. versionadded:: 2.16.1

        Notes:
            Does not take effect until calling `record.save()`

        Warnings:
            Providing no UserGroups will clear the restriction list, opening access to ALL accounts

        Args:
            *usergroups (UserGroup): 0 or more Swimlane UserGroup(s) to remove from restriction list

        Raises:
            TypeError: If provided a non-UserGroup instance
            ValueError: If provided UserGroup not in current restriction list