Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64735

Create web service core_badges_get_badge_users

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Future Dev
    • Badges

      This web service function will return the list of users that have earned a given badge:

      Parameters:
       ----------
      badgeids - Default: empty array --> all badges
      includeexpired - Default: false --> if true all users are returned, even if their badge is expired
      includesuspended - Default: false --> if true include disabled users as well
      Return value:
       -----------array of [
          struct{                
              badge struct [badge.id, badge.name, badge.status]                
              array of user [user.id,user.username,user.idnumber,user.suspended,badge_issued.dateissued,badge_issued.dateexpire]      
          }
          array of {         
              warnings struct [item, itemid, warningcode, message]      
          }
      ]
      

            Unassigned Unassigned
            stefanerlachner Stefan Erlachner
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 32 minutes
                1h 32m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.