Basically I don't want to "hijack" and take over the user's active portal (i.e. the one setup by the user through the Pro UI) because it could be their company's own portal and it's useful to them in session. I want my code to be able to login to a portal different from the user's active one (their company's portal) and do some things without affecting the user's portal that they currently think they are still connected to in that session.
So if I did some code like this:
var <SPAN>someOtherCompanyP</SPAN>ortal = ArcGISPortalManager.Current.AddPortal(<SPAN>someOtherCompany</SPAN><SPAN>Uri</SPAN>);
ArcGISPortalManager.Current.SetActivePortal(<SPAN>someOtherCompanyP</SPAN><SPAN>ortal</SPAN>);var someOtherCompanyUri = new Uri("http://someothercompany.com/portal/", UriKind.Absolute);
Will this change the user's active portal that was setup up by them through the standard UI of ArcGIS Pro? Effectively kicking them off their company's portal say?
If it does, is there a way to get round this?