Management Portal Set Namespace as Default
Hello,
every time I open the management portal (http://localhost:57774/csp/sys/UtilHome.csp) the default namespace is %sys.
How to set the namespace to my preferred namespace instead %sys?
Is there a setting or could I change the link?
Thank you
Helmut
P.S.: In my attached example image I want always to have default namespace EXPERT when I open management portal

Comments
Maybe use this as your launch URL:
http://localhost:57774/csp/sys/%25CSP.Portal.Home.zen?$NAMESPACE=EXPERT
I don't know if it's possible to alter the URL the 'cube' launches Portal with. But easy enough to create your own browser bookmark or desktop shortcut, no?
(DC tip - Using the "comment" link under and answer or another comment will help with threading)
Thank you very much for your answer.
This is what I am looking for.
Is there someone who has written code in COS or C# for setting this?
Merci.
Setting Startup Namespace in the User definition affects Terminal logins. The feature was expanded to affect the Portal in v2014.1
Thank you for your quick answer.
Where to change for the context menue "management Protal" of the systray?
Merci.
Helmut
Thank you very much.
I prefer the next answer (solution) by Arcady Goldmint.
Great.
Thank you very much.
ClassMethod SetNamespace(user As %String = {$username}, namespace As %String = {$namespace})
{
new $namespace
set $namespace = "%SYS"
set user = ##class(Security.Users).%OpenId($zcvt(user,"l"))
set user.Namespace = namespace
quit user.%Save()
}You should probably add input validation.
If you are using delegated authentication, namespace is one of the user properties that can be set - I set this so that staff in different roles are delegated to a namespace depending on their job requirements. From Intersystems online documentation,
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCAS_delegated:>>"NameSpace: if ZAUTHENTICATE sets the value of Properties("Namespace"), then that string becomes the value of the user account’s Startup Namespace property in Caché."<<
You can go to the System Management Portal, System Administration > Security > Users and set the "Startup Namespace" for the user in question (in this case UnknownUser). This sets the default for the Management Portal as well as for the terminal when that user logs in.
