Hi,
Our application needs to create system users from a request form.
To use Security classes, it is necessary to have rights to use the %SYS namespace, which is not the case for users who validate requests.
It is not desirable for these users to have this role permanently, so I proceeded as follows:
I created a facade class for the Security.Users, Security.Roles, Security.Resources classes which allows me to log in with an authorized user on the NS %SYS
Here is an example method:
ClassMethod Modify(name As%String, ByRef properties As%String) As%Status
{
set who = $USERNAMEdoHi,Our application needs to create system users from a request form.To use Security classes, it is necessary to have rights to use the %SYS namespace, which is not the case for users who validate requests.It is not desirable for these users to have this role permanently, so I proceeded as follows:I created a facade class for the Security.Users, Security.Roles, Security.Resources classes which allows me to log in with an authorized user on the NS %SYSHere is an example method:ClassMethod Modify(name As %String, ByRef properties As %String) As %Status
{
set who = $USERNAME
do