daveadams/sakai-info — pull request #1 by WillHumphries (2012-05-02 15:37:56+00:00)
Title: Provided Users

This is my first pull request, apologies if anything is broken! With this change in place, User objects can be created when there is an entry in sakai_user_id_map, and no entry in sakai_user. email, name, and type are set to 'Provided'. Here's sample output from 'sin user whumph01'

id: 07f001db-4ccb-4a41-a124-842b47b27814
name: Provided
eid: whumph01
email: Provided
type: Provided
site_count: 5
question_pool_count: 0

This allows other user-dependant data to be pulled, i.e. 'sin site --users'

id: 8923deb0-5b12-4912-b009-040a494a3ebc
title: test1
type: project
is_published: false
is_joinable: false
user_count: 1
group_count: 0
page_count: 7
pending_quiz_count: 0
published_quiz_count: 0
assignment_count: 0
gradebook_item_count: 2
forum_count: 0
users:
- user_id: 071a31db-4ccb-4a41-a124-842edbb27814
user_eid: whumph01
user_type: Provided
role: Organizer