HI Team, I am using IFM plugin to update security settings for existi

HI Team,

I am using IFM plugin to update security settings for existing process instances. I try to add new security to process model. To the model I add SHP_BAW_SuperUser group with Viewer setting. Below is my IFM query,

UPDATE 12142 ADD_SECURITY [VIEWER] = ["SHP_BAW_SuperUser"]

I get error message as "Does not exist: User".

Also I tried creating a constant of type GROUP and selecting SHP_BAW_SuperUser as group value. Please find my IFM Query,

="UPDATE "&pv!PMID&" ADD_SECURITY [VIEWER] = [" & cons!SHP_BAWU_SuperUser_Group & "]"

I get error message as,
UPDATE 12142 ADD_SECURITY [VIEWER] = [[Group:464]]: Unknown characters at index 49

Could you please help me in fixing this issue. What would be the IFM query to add new VIEWER security group to process instances.

Regards,
Madhankumar. B

OriginalPostID-152962

OriginalPostID-152962

  Discussion posts and replies are publicly visible

Parents
  • @madhankumarb Assuming that pv!PMID and cons!SHP_BAWU_SuperUser_Group are evaluating to proper values, I would like to suggest to try the following:

    "UPDATE "&pv!PMID&" ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"

    If the above query didn't work, further I would like to suggest to try by replacing the pv!PMID with a constant (of type 'Process Model') or hardcoded value as follows:

    >> "UPDATE 123 ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"
    (where 123 should be replaced with the id of the target process model)
    >> "UPDATE "&fn!tointeger(cons!TARGET_PROCESS_MODEL)&" ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"
    (where cons!TARGET_PROCESS_MODEL should be replaced with the constant which points to target process model. Choose this if you are on 7.8 and above.)
Reply
  • @madhankumarb Assuming that pv!PMID and cons!SHP_BAWU_SuperUser_Group are evaluating to proper values, I would like to suggest to try the following:

    "UPDATE "&pv!PMID&" ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"

    If the above query didn't work, further I would like to suggest to try by replacing the pv!PMID with a constant (of type 'Process Model') or hardcoded value as follows:

    >> "UPDATE 123 ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"
    (where 123 should be replaced with the id of the target process model)
    >> "UPDATE "&fn!tointeger(cons!TARGET_PROCESS_MODEL)&" ADD_SECURITY [VIEWER] = [cons!SHP_BAWU_SuperUser_Group]"
    (where cons!TARGET_PROCESS_MODEL should be replaced with the constant which points to target process model. Choose this if you are on 7.8 and above.)
Children
No Data