Overview:
...
Business Logic: Check batch type if batch type is open then caller userId (which we get from x-authenticated-user-token) should be same as passed userIds. If batch type is invite-only then call userId should have role of course-mentors.
Accepted solution:
solution solution 1 is accepted and dev team is going to implement it.
Task Ref : Jira Legacyserver System JIRA serverId 2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd key SB-7024
...