I want to check if login-user has an access permission to some IS service using ACLs setting in webMethods Administrator page.
The actions I have done are as follows
1.add user monUser, group monGroup
2.set monUser to be belong to monGroup
3.add Acls monAcl
4.set monGroup to be associated for monAcl
then I made a java service like
IDataCursor pipelineCursor = pipeline.getCursor();
String userid = IDataUtil.getString( pipelineCursor, “username” );
String aclname = IDataUtil.getString( pipelineCursor, “aclname” );
ServerAPI sa = new ServerAPI();
ValuesEmulator.put(pipeline, “hasPermission”, (sa.checkAcl(aclname,userid)) ? “Y” : “N”);
When I test with userid:monUser, aclname:monAcl, but it returns ‘N’.
I don’t know what’s wrong about it.
Your help will be appreciated. Thanks in advance.