2011-10-04_1250.png

This is a helper module for Feeds to allow it Map incoming values to Role IDs. This is useful with Feeds Tamper where you can intercept an incoming value such as "student" and convert the value to a role id in the system (like 4 or whatever it is). This provides two value maps, one for role id (user global) as well as one for group id. This way you can attach a feed to a content type and on import push the role specifically to the group role id for use with OG User Roles.

This way you can accept an XML feed as such:

<users>
  <user>
    <name>myname</name>
    <role>admin</role>
  </user>
  <user>
    <name>anotherusername</name>
    <role>editor</role>
  </user>
  <user>
    <name>yet another user</name>
    <role>author</role>
  </user>
</users>

And automatically assign each an account and role. Typically Feeds just accepts a list of users and pushes them into accounts of 1 role (like giving everyone role student by default). This doesn't work if you are tapping a list of users with different roles and this module helps bridge this use-case.

Project created as part of the Penn State University ELMS Initiative.

Supporting organizations: 

Project information

Releases