× Social Extensions Integration

Data mapping not mapping across some users' data

5 years 3 months ago 5 years 3 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #1
Hi, we recently noticed that some data are not mapped across to moodle for some reason.

Our situation is like this:

Joomla: custom Community Builder field of text type.
Moodle: Mapped across to "institution".

When checking the list of students on moodle, it appears that the data for some of the users are not mapped across to Moodle. I have checked their Joomla CB Profile account, and the data is there in the custom field. It just isn't mapped across.

These users have logged in and updated their own profile (from frontend and backend) within the last 3 days as well.

I can't seem to find anything in common with these ~20 users (out of ~600). Would you have any idea?


On a possibly related issue, we tried to map a custom Community Builder field (dropdown) to a custom moodle profile field. This doesn't seem to work, as the custom moodle field keep reverting to its default (when no default set, it reverts to blank).

We have now mapped Joomla's profiled field to custom moodle profile field, and it seems to work for now.

Please Log in or Create an account to join the conversation.

5 years 3 months ago
Antonio Durán
Posts: 7815
More
Data mapping not mapping across some users' data #2
Hi.

I can't think of anything that would cause that behaviour.
In those users, is all the other data mapped correctly?
If you can log in as one of those users, you could try saving profile yourself, to see if it gets updated in Moodle. Well, you can try before in backend. Just edit user and save, and see if info gets updated.

> we tried to map a custom Community Builder field (dropdown) to a custom moodle profile field. This doesn't seem to work,

How is the profile field in moodle, also a dropdown? In that case, maybe problem is that option keys are not the same on both sides?
You could set a text field in Moodle, and map to it, so you can see if the dropdown value is being sent to Moodle.

Please Log in or Create an account to join the conversation.

5 years 3 months ago 5 years 3 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #3
Yes the moodle field is also a dropdown. We created a text field in Moodle, when we saved the profile the field becomes blank (default is 'student').

The weird thing is, we have other mappings that works fine. Dropdown -> Dropdown, Text -> Text, even Dropdown -> Text. Seems to be certain CB custom fields (regardless of type) that doesn't get mapped across.

Edit: Actually, in fact there are only two of our CB custom fields (one is dropdown, one is text) that gets mapped across. When we use those two CB fields, they can get mapped to any other moodle field. Cloned those fields, and they get mapped across too.

Yet when we try to choose any other CB field (even name, username, etc), it doesn't get mapped across to any moodle field. There doesn't seem to be a pattern to this problem.

Edit 2: We've narrowed it down. Changing some of the field parameters on CB seem to break it. Now just need to find which parameter is the culprit..

Please Log in or Create an account to join the conversation.

5 years 3 months ago 5 years 3 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #4
It's CB Conditional. This plugin is used to restrict the visibility of CB fields based on selected parameters of the viewing user's profile. We used this to hide some sensitive fields from the users themselves.

It seems that if the CB field is set in a way that the user themselves cannot see the field on their own profile, it doesn't get mapped across.

Please Log in or Create an account to join the conversation.

5 years 3 months ago 5 years 3 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #5
Found the source of the other issue.

CB Privacy. This plugin allows users to restrict who can view their profile. If the user sets the restriction to anything other that 'Everyone', their CB profile fields don't get mapped to moodle. This explains why some users' profile field data don't get mapped across to moodle, while other users' data do.

Changing the parameter within CB Privacy plugin to allow "Direct Access" to user profiles fixed this problem.

Please Log in or Create an account to join the conversation.

5 years 3 months ago
Antonio Durán
Posts: 7815
More
Data mapping not mapping across some users' data #6
Hi.

Thanks for all the info. If you want, you can send me the plugins by email, and I can take a look to see if we can make it work even when using them.

Please Log in or Create an account to join the conversation.

5 years 3 months ago
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #7
Sent to your email, did you get them Antonio?

Please Log in or Create an account to join the conversation.

5 years 3 months ago
Antonio Durán
Posts: 7815
More
Data mapping not mapping across some users' data #8
Thank you. As you said host was blocking emails, so I hadn't noticed. I will check them out when I can and get back to you.

Please Log in or Create an account to join the conversation.

5 years 3 months ago
Antonio Durán
Posts: 7815
More
Data mapping not mapping across some users' data #9
Hi.

I found a way to make it work with the CB Privacy plugin.

As for CB Conditional: this one I don't get it: if the user cannot see the field in CB, why send it to Moodle where he can see it?

The thing is that the fix for privacy is to log as the user before fetching the data. That works fine for privacy, because user can always see his own data.
But I think this also will make it not get the data if the user himself cannot see it...

Anyway, as I don't know how you have set things with CB conditional, I think it is better that you try with the new package (I will send it now by email) and see how it goes.

Please Log in or Create an account to join the conversation.

5 years 2 months ago
Web Buster UK Ltd
Posts: 137
More
Topic Author
Data mapping not mapping across some users' data #10
Sorry Antonio just been busy, will test the plugin in due course and report back to you.

The reason for CB conditionals is that certain profile fields might be sensitive/hidden from students, but visible to teachers. But it's not something that is essential so we'll just change our settings to make it work for now.

Please Log in or Create an account to join the conversation.