CA Service Management

  • 1.  SPEL method to get session info or role of loged in user

    Posted Aug 05, 2015 09:41 AM

    Hello,

    Maybe anyone is aware of the SPEL method to get session info or role of loged in user?



  • 2.  Re: SPEL method to get session info or role of loged in user
    Best Answer

    Posted Aug 06, 2015 11:57 AM

    Ok got it

    logf(SIGNIFICANT, cnt::get_login_user_role_name());

     

    There is also some other functions that may be usefull

     

    logf(SIGNIFICANT, cnt::get_login_user_interface_type());

    logf(SIGNIFICANT, cnt::get_login_user_grant_level());



  • 3.  Re: SPEL method to get session info or role of loged in user

    Posted Jan 10, 2017 06:00 PM

    Very useful information, but do you have functional examples? What parameters can be used? Where can the results of the function call be validated? Can this function be called from the call to another function for another object?, for example from a SPEL vaidation in a CR or in a CHG

     

    Sorry if there are many questions in one.

     

    Please your help.


    Regards,

    JOHN



  • 4.  Re: SPEL method to get session info or role of loged in user

    Posted Jan 11, 2017 12:26 AM

    Hi, as far as i know there is no parameters to this function. You can use them in any spel code e.g.

    string role_wc;
    role_wc = format("name = '%s'", cnt::get_login_user_role_name());

     

    Here you can find an usage example

    https://communities.ca.com/docs/DOC-231159154



  • 5.  Re: SPEL method to get session info or role of loged in user

    Posted Jan 13, 2017 02:31 PM

    Thank you very much for your help.

    Regards,

    JOHN