Is it possible to export/import roles and permissions via cli?

Is it possible to export/import roles and permissions via cli?

by Diane Soini -
Number of replies: 2

It's so arduous to do this manually. It takes a thousand clicks. Just the checkboxes alone on the reset page is killing me. Is it possible to import roles via the command line? I tried moosh but I cannot even restore a course with moosh because of errors with the roles not being able to be mapped. So I'm trying to find a good way to import the roles.

Average of ratings: -
In reply to Diane Soini

Re: Is it possible to export/import roles and permissions via cli?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I'm struggling to understand what you are trying to do. Can we take a step back? Why do you want to do this, why does it take "a thousand clicks"?