Is there a way to get student_id in bulk from Users API?
Hi everyone,
We’re currently using this endpoint for user sync:GET /school/v1/users?roles={{roleid}}
The issue is it doesn’t return student_id.
We found this endpoint:GET /school/v1/users/extended/{user_id}
which does include student_id, but it requires one API call per user — which isn’t practical for bulk sync, especially across multiple schools (tenants).
Has anyone faced this before?
- Is there any way (parameter, expansion, or different endpoint) to get
student_idin bulk with the users list? - Or how are you handling this efficiently in your integrations?
Any suggestions or best practices would be really helpful.
Answers
-
You're looking for Users Extended by Role (https://developer.sky.blackbaud.com/api#api=school&operation=V1UsersExtendedGet)
It includes the Student ID field.
Beware: Users Get By Role uses the Role ID. Users Extended Get by Role uses the BASE Role ID. See Core Roles endpoint for details.
0 -
Hi Brian Gray,
Thank you for your suggestion.
As per Blackbaud’s documentation, Users Extended Get by Role relies on
base_role_id, which represents predefined base roles. In our case, role definitions (e.g., Student, Parent, Staff) are determined at the school level, and there is a possibility of conflicts if custom roles share the samebase_role_idas roles in the school’s exclusion list. This could impact our synchronization logic.Could you please confirm if there is:
- Any parameter or filter to safely retrieve
student_idwithout relying onbase_role_id, or - An alternative API that supports bulk retrieval of users along with
student_idand related data?
Appreciate your guidance.
0 - Any parameter or filter to safely retrieve
-
I am not aware of any endpoints that will return the student_id field that doesn't require the base_role_id. In the data returned by User Extended Get, the array of roles assigned to the user includes both the role_id and base_role_id for each role. You could identify the users you really want by cycling through that array looking for the role_id of the custom role.
You may want to look at the two end-points related to retrieving data from Advanced Lists: List of Lists and List Single.
- List of Lists returns a list of the Advanced Lists available, including the name and the List ID.
- List Single takes the List ID and returns the data produced by that list.
You could create an advanced list that includes the data fields you want (filtered for the users you want) and read it into your program for processing. Advanced Lists are somewhat limited - newer data fields are not always available. The newer SKY Lists are not yet readable by the API.
It's not a perfect solution.
0 -
Thank you, Brain Gray. We will proceed with the list-based approach and evaluate its effectiveness.
0
Categories
- All Categories
- 1 Blackbaud Agents for Good™
- Raiser's Edge NXT test
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 661 Blackbaud Grantmaking™
- 583 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 947 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.8K Blackbaud Raiser's Edge NXT®
- 3.8K SKY Developer
- 251 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 243 Member Lounge (Just for Fun)
- 37 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 804 Community News
- 3K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
