Hi All,
There is one standard table HcmWorkerBankAccount. If i have system admin role then i can get data from form data source (HcmWorkerBankAccount), If i have remove system admin role unable to get data from form Datasource. when i check in back end i got one policy related to this table. I created one role and added this table to the role and granted all access but still unable to retrieve data.
What should i do need to do to get data even sys admin role is not there. Do i need to create a separate role and map this policy. How to do this?
Thanks in advance.
Hi mohit,
Disabling xds is also not working.
PJ JohnPaul Can you try disabling XDS policy in your code. (I'm not sure if its best practice but please check if it works). If it works then you have to check the User's role as well, so it won't work for all non admin roles.
Without system admin role, if you want to get data means you should be that user with that role where you can get data. I would suggest you to check this with FC for which roles can this data be seen. So you can assume that role or create a new role which is similar that role which FC is mentioning.
Hi Bharani,
Thanks for the reply,
I can get data in backend with sys admin role.
But i can't assign sys admin access to all users. I need to do with separate role only.
How to get data in backend for this HcmWorkerBankAccount table without sysadmin .
what should i need to do. Kindly advise me.
Thanks
As Mohit suggested it is due to XDS. For example even if you have admin access also, you cannot see workflows waiting for some manager approval. Only the user with manager role can see them.
But I don't understand if you can do this by admin role, why you want to remap or to recreate a new role? Are you saying even with admin, you cannot get data from code in backend?
Hi Mohit,
I can also create and delete bank accounts but not able to get data in code.
I tried creating a new Security role and assigned only these privileges and able to see the workers and their bank accounts.
Hi Mohit,
Thanks for the reply.
Without sys admin role , delete option is visible in form
Hi, Are you able to access Worker Bank accounts form from UI (with Non Sys-Admin account) and only worker attached to user's data is visible? If yes, then it would be due to XDS
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156