Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6588

The Authenticated user role in the backup file cannot be mapped to any of the roles that you are allowed to assign.

$
0
0
by Alec Young.  

Evening All,


Got a bit of an issue arising with backing up and restoring from one moodle to another.


I have roughly a couple hundred or so courses to go from one moodle to another, these are all used by users throughout the institute and make use of MNET to log in users using network accounts, multiple users are enrolled on each course both as Teachers and students.


While restoring backups that contains no users (guest accessible courses) the restores fails due to incorrect role mapping.


The two issues are:

array(1) {

  ["warnings"]=>

  array(2) {

    [0]=>

    string(115) "The Authenticated user role in the backup file cannot be mapped to any of the roles that you are allowed to assign."

    [1]=>

    string(128) "The Authenticated user on frontpage role in the backup file cannot be mapped to any of the roles that you are allowed to assign."

  }

}


Looking in to the backup mbz file, under the roles.xml file I can see that it does appear to define the roles

<role id="7">

<name>Authenticated user</name>

<shortname>user</shortname>

<nameincourse>$@NULL@$</nameincourse>

<description><p>All logged in users.</p></description>

<sortorder>9</sortorder>

<archetype>user</archetype>

</role>

<role id="8">

<name>Authenticated user on frontpage</name>

<shortname>frontpage</shortname>

<nameincourse>$@NULL@$</nameincourse>

<description>

<p>All logged in users in the frontpage course.</p>

</description>

<sortorder>10</sortorder>

<archetype>frontpage</archetype>

</role>


Is this an error that it is trying to take across the roles which cannot be defined by anyone, not even the Site Admin accounts?


If I do this manually, I am presented an option to restore the role mappings by selecting another role to use but I have been automating this with Moosh which does not present the option, failing instead.


Alec


Viewing all articles
Browse latest Browse all 6588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>