'Returns the first user partition with the specified scheme.'

def _get_user_partition(self, scheme):

    for group in GroupConfiguration.get_all_user_partition_details(self.store, self.course):
        if (group['scheme'] == scheme):
            return group
    return None
