Written by

Question Helmut Huber · Oct 13, 2017

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

John Murray  Oct 13, 2017 to Helmut Huber

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)

0
Helmut Huber  Oct 13, 2017 to Arcady Goldmints-Orlov

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.

0
Joel Solon  Nov 1, 2017 to Arcady Goldmints-Orlov

Setting Startup Namespace in the User definition affects Terminal logins. The feature was expanded to affect the Portal in v2014.1

0
Helmut Huber · Oct 13, 2017

Thank you for your quick answer.

Where to change for the context menue "management Protal" of the systray?

Merci.

Helmut

0
Helmut Huber  Oct 13, 2017 to John Murray

Thank you very much.

I prefer the next answer (solution) by Arcady Goldmint.

0
Helmut Huber  Oct 16, 2017 to Eduard Lebedyuk

Great.

Thank you very much.

0
Eduard Lebedyuk  Oct 13, 2017 to Helmut Huber
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.

0
Clara Arlotto · Oct 13, 2017

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é."<<

0
Arcady Goldmints-Orlov · Oct 13, 2017

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.

0