No one has responded to this discussion for at least a year, so this information may be out of date. If you're looking for information about this topic, please search for a more recent discussion or post a new question.

Is there a way to auto discovery sharepoint online url ?

This question is answered This question is answered

Hi,

     

Let us say that I have a username amar.patel@mycompany.net

When i login on http://www.office365.com, i enter my credentials & password and then i am presented a web page with following 3 options to work with:

1. Outlook
2. Lync
3. Team Site (This is our Sharepoint Online link)

Is there a programmatic way to obtain this Sharepoint online link ?

 

Regards,
Venkat.


Verified Answer
  • Hello Venkat,

    This is Justin with Microsoft Office 365 SharePoint Support.  Thanks for your recent responses to the thread.

    In an Enterprise account, the public and internal Team Sites in SharePoint are seperate site collections.  When a custom domain is added, it may utilized for the login and public site domain.  It is not possible to change the third level domain location of your SharePoint Team Site.  It will always be the initial (domain.sharepoint.com) address.  The only way to change domains for internal sites is having an entirely new account created.  For more information about this, please review the link below.

    http://onlinehelp.microsoft.com/en-us/office365-enterprises/jj128104.aspx

    Thanks and Regards,

    Justin Ronan
    Microsoft Office 365 SharePoint Support

All Replies
  • Hi,

    What's your subscription? E or P plan?
    I assuming you are P plan user, you can verify you team site link at Domains page in Office 365 portal. There you will be able to see "Your SharePoint website address is". By default, the team site link with "/teamsite" at the end of your SharePoint website address.

    Hope it helps you.

    Sarah

  • Hi Sarah,

        Iam very thankful for your immediate response. Actually our subscription is E plan. I could be able to see the sharepoint url by the above way you mentioned but i wanted to know for a given user amar.patel@mycompany.net , is there a way to identify the sharepoint online URL(s) programmatically ? (using java or .net or c++ using soap or any other protocol.)

        In the above case could we blindly assume that the sharepoint url would be mycompanynet.sharepoint.com ?.

     

    Regards,

    Venkat.

  • Hi Venkat,

    Yes, the Team Site menu at the top of Microsoft Online Portal points to https://(domain).sharepoint.com/ for Office 365 Enterprise users. This behavior is by default and cannot be changed via SharePoint Online.

    Actually the URL of SharePoint Online sites are not related to the accepted domains (except for the public website). Office 365 by default use the partial first sign up onmicrosoft domain as the prefix of the SharePoint Online sites.
    Based on my test. For example, I used user@mycompany.onmicrosoft.com to sign up Office 365 account, the fact is even I add xxx.com to Office 365, the new Sharepoint site collection should be https://mycompany.sharepoint.com/XXXX and Team Site menu should be link to https://mycompany.sharepoint.com/.

    If there are anything unclear, please feel free to contact us.

    Thanks,
    Allen Qiu

  • Hi Venkat,

    If you have any other concerns on this issue, please feel free to contact us.

    Thanks,
    Allen Qiu

  •  Hi,

     Thank you . i am clear.

    One last question as you said the Team Site menu at the top of Microsoft Online Portal always points to https://(domain).sharepoint.com/ for Office 365 Enterprise users. Would this behavior change in the future? i mean instead of (domain) can we add any other custom name.

    like mycustomname.sharepoint.com ?

    Regards,

    Venkat.

  • Hi Allen Qiu,

    One more question

    login.microsoftonline.com/rst2.srf

    login.microsoftonline.com/extSTS.srf

    login.microsoftonline.com/login.srf

    where can i find the format for the request xml body  for the above links.

    Regards,

    Venkat.

  • Hello Venkat,

    This is Justin with Microsoft Office 365 SharePoint Support.  Thanks for your recent responses to the thread.

    In an Enterprise account, the public and internal Team Sites in SharePoint are seperate site collections.  When a custom domain is added, it may utilized for the login and public site domain.  It is not possible to change the third level domain location of your SharePoint Team Site.  It will always be the initial (domain.sharepoint.com) address.  The only way to change domains for internal sites is having an entirely new account created.  For more information about this, please review the link below.

    http://onlinehelp.microsoft.com/en-us/office365-enterprises/jj128104.aspx

    Thanks and Regards,

    Justin Ronan
    Microsoft Office 365 SharePoint Support