Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
boolean hasdomainAccess =AccessControlHelper.manager.hasAccess(user, "com.infineon.ProductDevelopmentReport", container.getDefaultDomainReference(), _State.toState("INWORK"),
AccessPermission.CREATE);
Here it always return true even there is no access to create for the user while implementing validation in the builder
What does debug logging on that hasAccess method say?
Hi @TP_10729144
I would say that it works.
You just need to get all access that are defined on that object type.
Go to ACL manager, get all domains, and search for the type.
You would find that the permission is defined somewhere.
It is not easy because it depends on many criteria as state, domain level, roles groups and so on.
You just do not know where the definition is set.
I would recommend to try to find the existing object in the specific state, and use the Edit Access Control function to get information you need by UI
Search the specific user and add him to the table and get the detail information
PetrH
Hi @TP_10729144,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
