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

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

Diane Soini -
回帖数: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.

回复Diane Soini

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

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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"?