HI Everybody,
I need use the changecompany functionality but the user may not have permissions to read/write from a particular table. Could anyone suggest whether I can temporary give certain permissions to the user or whether i can temporary change the user for administrator whilst the change company and the related actions are being perforemed?
Regards,
Stephen
0
Comments
Looking for some possibility..will let this forum know if I find something interesting
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
you should try to add additional role with permissions to those tables, but NOT limited to any company.
That user can have e.g. SUPER (DATA) role limited to company 'ABCD', and additional role e.g. CCV that can access Customer, Contact, Vendor, but not limited to any company...
That user can not access main menu for another companies, just for 'ABCD', but procedure (e.g. some codeunit) that need to do some changecompany transactions, can get that access (because of the role CCV).
I hope this idea can help,
regards,
Elma
I added the new role for that user, called e.g. CCVI, and put permissions to read/modify... tabledata for contact, customer, vendor, item.
So my user e.g. USER12 has roles: SUPER (DATA) limited to company e.g. Cronus12, and role ALL limited to the same company e.g. Cronus12, but also role CCVI, with NO limits to company filter.
Try something like this. You do not need to put perimissions on forms.
So, add perimission to USER ID (Tools/Security/Database logins...).
As I know, if you put restriction to just one (or couple) companies, that user ID can not get access to tabledata in another company, using perimissions on object. So try this solution with additional role (as explained)...
Regards,
Elma