If your administrator is locked,you can used API unlocked again.
sign in with the administrator account
in homepage, click Azure Active Directory,Follow my picture.
1.Click Azure Active Directory
2.Follow my picture:
3.Follow my picture:
4.You’ll get some information you need.
Copy this information and save it in your computer notepad
5.Click Certificates & secrets
6.Create your certificate key
7.You’ll get some information you need.Copy this information and save it in your computer notepad.
8.Click API permissions,Follow my picture.
9.Click Microsoft Graph,Follow my picture.
10.Follow my picture
11.Add these permissions.you need add all these permissions
|Application.ReadWrite.All||Functions for adding new keys|
|Application.ReadWrite.OwnedBy||Functions for adding new keys|
|Directory.ReadWrite.All||Functions for subscription, domain and user management|
|RoleManagement.ReadWrite.Directory||Used for management of privileged roles|
|User.ManageIdentities.All||Management for users|
|User.ReadWrite.All||Management for users|
|Reports.Read.All||Used to generate Onedrive, Exchange detailed report|
|Sites.FullControl.All||Used to verify SPO|
|Domain.ReadWrite.All||Used for domain management|
12.Click:Graant admin consent for xxx
If the account is locked in the future, if you don`t know how can unlock,you can contact me to unlock it for free.