Share via

Error occurred while executing Add-TeamUser. Resource does not exist

KAZANSKYI, OLEG 21 Reputation points
2022-07-29T14:45:05.74+00:00

Hello,

I am trying to add users to the Teams Group, but I get an error:
Add-TeamUser : Error occurred while executing
Code: Request_ResourceNotFound
Message: Resource 'xxxxxxxx' does not exist or one of its queried reference-property objects are not
present.
InnerError:
RequestId: 8e280c79-8e01-4598-ae74-7876e56ef0a7
DateTimeStamp: 2022-07-29T14:19:38
HttpStatusCode: Request_ResourceNotFound

I can add a user manually, it means it is in the AD list if it's a problem.
Does anyone know how to solve it?

Microsoft Teams | Microsoft Teams for business | Other

1 answer

Sort by: Most helpful
  1. Kai Yao 37,791 Reputation points Moderator
    2022-08-01T02:14:28.13+00:00

    Hi @Anonymous

    What is the 'xxxxx' part in the error message Resource 'xxxxxxxx' does not exist or one of its queried reference-property objects are not present.?
    Is it the groupID of the Team or the user you would like to add to the Team?

    If it is the user, please make sure you are using UPN for the user parameter.
    Reference: Add-TeamUser
    226490-13.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.