about mdl_role_assignments

about mdl_role_assignments

Chirag Patel - келді
Number of replies: 7

hey guys I have question about mdl_roel_assignments\

That it has two lines

When you download it and open it in excel

then line 2 and 5

It shows that same user has been gievn same role 3(student).

Means same user has been given student role two times,

How that popssible?

In reply to Chirag Patel

Re: about mdl_role_assignments

Paul Holden - келді
Core developers қатысушының суреті Moodle HQ қатысушының суреті Moodle Workplace team қатысушының суреті Particularly helpful Moodlers қатысушының суреті Peer reviewers қатысушының суреті Plugin developers қатысушының суреті Testers қатысушының суреті

They're assigned in different contexts.

In reply to Paul Holden

Re: about mdl_role_assignments

Chirag Patel - келді

Thanks after posting I realized it,but now i have another question

I am constructin one query

which gives me number of count that each student has viewed course!

can you help me with this!!!1

In reply to Chirag Patel

Re: about mdl_role_assignments

David Mudrák - келді
Core developers қатысушының суреті Documentation writers қатысушының суреті Moodle HQ қатысушының суреті Particularly helpful Moodlers қатысушының суреті Peer reviewers қатысушының суреті Plugin developers қатысушының суреті Plugins guardians қатысушының суреті Testers қатысушының суреті Translators қатысушының суреті
Also, IIRC the same role can be provided by multiple enrolment plugins - see the column "component".
In reply to David Mudrák

Re: about mdl_role_assignments

Chirag Patel - келді

he david can you help me with ADMIN variable and its properties,Because in moodle course  it is not explained!!!I am also working on query but now i want this help!!

In reply to David Mudrák

Re: about mdl_role_assignments

Blair F. - келді
Particularly helpful Moodlers қатысушының суреті

I came across this post after posting my own question here:

https://moodle.org/mod/forum/discuss.php?d=329638

In my case, there are multiple rows of the same contextid and there's no component entry, at all. I don't understand.  I've got some students in a course that have 11, 12, even 15 records that all appear to have the same data.