Hi @Mervyn Thomas ,
Welcome to our forum!
Based on my research on the error "AADSTS50020", i found an article mentioned several causes. It's suggested that you could refer to it and try the solution: Error AADSTS50020 - User account from identity provider does not exist in tenant.
Hope to help you!
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.