Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
4 subscribers
Views
1728 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
HI Team, I am using IFM plugin to update security settings for existi
madhankumarb
over 8 years ago
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
0
janakik
over 8 years ago
Before getting into the query, Is 12142 process id or process model id ?
Below query would modify the security
UPDATE pm!id ADD_SECURITY [VIEWER] = [your constant].
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
madhankumarb
over 8 years ago
Janakik, it is process model id.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@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.)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rodgraham
Certified Lead Developer
over 8 years ago
I think your statement should be UPDATE 12142 ADD_SECURITY [VIEWER] = [Group:464] - I believe that's what I've used in the past
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel