Forum Discussion
What is 'myorg' mean in the Rest API?
It sort of looks like I'm supposed to to replace it with my company name. But all the examples seem to leave it as 'myorg', It's seems really odd like that.
Anyone know?
3 Replies
- v-chuncz-msftCommunity Support
Anonymous,
You do not need to replace it. Based on my experience, it might be used for internal management or future expansion.
- BizIntelFrequent Visitor
If working across tenants, I need to specify where I'm calling to. What can be used to replace "myorg"?
- EGobiAdvocate I
myorg is a placeholder for your organization's Entra ID UPN suffix. UPN stands for User Principal Name, and it's basically your email if your organization uses it. So, if you want to work across tenants, like BizIntel said, simply change myorg by what comes after the @ in your email.
If your tenant doesn't use email and you're an Azure admin, you can check the UPN here: Plan and troubleshoot User Principal Name changes in Microsoft Entra ID - Microsoft Entra ID | Microsoft Learn
So imagine your login for tenant 1 is [email protected], and your login for tenant2 is [email protected]. You'll change myorg to enterprise.com when connecting to their Power BI and univesity.com when connecting to the latter's Power BI.
I consider changing myorg a good practice even if you only work in one tenant. If someone else uses your file with this in the connection string and they have a common name for a workspace across tenants, they may end up successfully connecting to the wrong workspace if their current login is in the other tenant.