You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark Ramon edited this page Oct 25, 2017
·
1 revision
Names and Role Provisioning Service
The Names and Role Provisioning Service allows a tool provider to obtain a list of users enrolled in a context. The response is returned as an array of User objects. The context may be obtained by using its primary key, its context ID or via a resource link ID which is known to belong to that context:
The memberships for the context can then be obtained by a simple call to the getMembership method.
$users = $context->getMembership();
Similarly, use the resource link instance to get a list of users with acces to the resource link:
$users = $resource_link->getMembership();
Note that the role and limit options of this service are not yet supported.
Memberships extension service
The doMembershipsService() method allows a tool provider to request a list of users with access to the resource link from the tool consumer. The method returns an array of User objects.