-
Notifications
You must be signed in to change notification settings - Fork 1
Find out User ID for a User based on the Moodle API #1
Comments
If one possesses the The user information is obtained by searching the user using the function The API Call for getting the user id for a known vector such as the user's
Call structureBase URL: Attributes:
Result structureThe result is an array of user records or an empty array if no matches are found. The search is successful if the any user is found. It MAY yield records for other users that match the lookup value. The following attributes are only present if the USERTOKEN matches the selected user:
|
Achtung: bei der Verwendung mit |
Ab moodle 4 ist es nicht mehr möglich alle Nutzer zu finden. So kann über die API für einen regulären Nutzer nicht mehr herausgefunden werden, ob ein anderer Nutzer existiert, solange es keine Peerverbindung (z.B. über einen Kurs) gibt. |
A much smarter variant for bootstrapping is |
Many API Calls depend on the user id of the active user. The user id is not easy to find in Moodle. Is there an API call to get the user ID for the active user?
The text was updated successfully, but these errors were encountered: