# Missing Repository Permissions During AD or OpenID Login

# Question

What to do if users have lost Repository permissions during login via AD or OpenID?

[![image-1691050271761.png](https://doc.eainfoport.cz/uploads/images/gallery/2023-08/scaled-1680-/image-1691050271761.png)](https://doc.eainfoport.cz/uploads/images/gallery/2023-08/image-1691050271761.png)

# Answer

This situation may have occurred after installing new version 8.7.0.8956. Users may have lost Repository permissions during login via AD or OpenID. It is important to note that this most likely happened when a user had more than one Repository.

The fix is possible using a script that finds these users and restores their permissions. If the problem is confirmed, please contact us at [https://www.dphelpdesk.cz/](https://www.dphelpdesk.cz/)