Olá,
Hoje, eu estava tentando me conectar em um CRM Online localizado na região da Oceania, através de suas API’s.
Realizei testes utilizando Plugin Registration Tool, Package Deployer, Data Migration Utility e inclusive ferramentas de terceiros como é o caso do XrmToolBox. Em todos os cenários, estava recebendo o seguinte erro:
“You don’t have permission to access any of the organizations in the Microsoft Dynamics CRM Online region that you specified. If you’re not sure which region your organization resides in, choose “Don’t know” for the CRM region and try again. Otherwise check with your CRM administrator.”
O mais interessante disso tudo é que meu acesso vis Browser está funcionando, realmente o problema está na conexão através de outras ferramentas.
Após um pouco de pesquisa, encontrei este post. Não está falando do mesmo assunto/problema, porém, a solução informada resolveu meus problemas.
A Microsoft nos últimos tempos criou novos datacenters, principalmente na Ásia e Oceania, fato que ainda não foi refletido no SDK e ferramentas de terceiros. Mesmo selecionando a opção “Eu não sei” (I don’t know) o erro persiste.
Assim, a solução a ser realizada consiste em editarmos o arquivo de configuração de cada componente que queremos acessar o CRM via API. No caso do plugin registration, é o arquivo abaixo do executável:
Devemos adicionar as seguintes tags abaixo do nó “configuration“:
<system.net> <defaultProxy useDefaultCredentials="true"></defaultProxy> </system.net>
Pronto! Salve o arquivo e abra novamente o executável!
[]’s,
Tiago Cardoso
In case of USD Client also we were getting the issue. We had to get few of the urls unblocked to get it working
https://nishantrana.me/2018/12/10/you-dont-have-permission-to-access-any-of-the-organizations-in-the-microsoft-dynamics-crm-online-region-that-you-specified-error-in-usd-client-application/
CurtirCurtir
Hi Nishant, It’s a pleasure to have you accessing the blog! Thanks for sharing how to fix it in the USD as well!
Cheers,
Tiago
CurtirCurtido por 1 pessoa
Thanks Tiago 🙂
CurtirCurtir