0

when I run this command:

update-usertype -LoginName *username*

I get the following error message. However, I do not know what this means.

Exception has been thrown by the target of an invocation

I am using the latest Sharepoint Online Library and at the moment of execution I am global admin including owner on every sharepoint site.

What could be the problem?

1 Answer 1

0

In my test, I can reproduce your problem.

enter image description here

We recommend that you sign in Azure Active Directory admin center as an administrator and directly modify the "User type" of the user account.

enter image description here

======================= Updated Answer =========================

After my test, after a period of time (within 24 hours), the SharePoint user's usertype will be updated automatically.

enter image description here

enter image description here

5
  • I thought this was a special Sharepoint topic. Because updating on the user in Azure is not easily updated in Sharepoint. The user has already the right user type in azure. But in shareppoint the user still have another user type (guest). And this makes some problems with the site permissions
    – patchfox
    Commented May 20, 2021 at 13:06
  • Hi, patchfox. I have updated answer under initial My Answer. Hope this can help you to solve issue. Have a nice day! Commented May 21, 2021 at 10:00
  • Thanks for the update. But I tried your suggestion. The problem still exists. Command not working and User has the old user type
    – patchfox
    Commented May 21, 2021 at 16:51
  • UPDATE: i tested the scenario on another tenant. There is only one sharepoint site and minimal permission assignments. On this tenant, the command works fine. So, could it be, that the user who trigger the command needs collection administrator for all sites of sharepoint?
    – patchfox
    Commented May 21, 2021 at 19:10
  • Hi, patchfox. Yes, you are right. The user who triggered the command needs SharePoint Administrator permission. Commented May 24, 2021 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.