[EKL Quick Tips] Retrieve security context informations

EKL Knowledgeware KnowHow Management ​​​​​​​

You sometimes need to check the current collaborative space in an EKL script. Here is a realy simple code to retrieve the current security context (role, organization, collab space) :

//Get Security Context
let SessionSecurityContext (String)
SessionSecurityContext = GetSystemInfo("securitycontext")

//Split the Security Context
let l(List)
l= SplitString(SessionSecurityContext,".")

//Retrieve informations
let SessionRole,SessionOrg,SessionCS (String)
SessionRole=l[1]
SessionOrg=l[2]
SessionCS=l[3]

//Display informations
Notify("#|#|#",SessionRole,SessionOrg,SessionCS)