# Error when importing permission schemes

**URL:** <https://forum.mattermost.com/t/error-when-importing-permission-schemes/11720>\
**Category:** Troubleshooting\
**Created:** [May 23, 2021, 1:47pm UTC](https://forum.mattermost.com/t/error-when-importing-permission-schemes/11720 "2021-05-23T13:47:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewCoder1](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@NewCoder1](https://forum.mattermost.com/u/NewCoder1)\
**Post date:** [May 23, 2021, 1:47pm UTC](https://forum.mattermost.com/t/error-when-importing-permission-schemes/11720/1 "2021-05-23T13:47:34Z")

</div>

I’m trying to run the command ‘mattermost permissions import ./permission\_schemes/default.jsonl’ to import default permission schemes automatically when running the mattermost server. I modified the makefile to run the command when running ‘make run-server.’ However, I’m getting this error message when running ‘make run-server’ now:  
“This API endpoint is not accessible as required migrations have not yet completed.”  
Does anyone have any know what may be causing this? Currently, I’m on a forked version of mattermost 5.35 (latest version), but I also had the error before updating. Here is the console output leading up to the error:

![run-server-console-output](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/c/c604a9105fef3680dd6f691712377e123280c378.png)

Thanks
