Hi All,
We have a wierd problem using the webservices where if we assign company level permissions to a user then they lose access when calling the webservices. It is as though they are sudenly not authorised.
Let me give you an example.
User = BLOGGSJ
Companies in the database - Company A, Company B and Company C.
We have a website calling the webservices. In the web.config we store the company being used by our site. The webservice references are built according to this setting in the web.config in the data access layer of our website. Let us say in this example the web.config is set to "Company A".
If BLOGGSJ is setup with (for example) roles with NO company level permissions on them then they can call the webservices fine without any problem.
So if they were (examples, not actual roles!)...
ALL
POST G-L
READ CUSTOMER
Then they can call the webservices fine.
If however they are
ALL Company A
POST G-L Company A
READ CUSTOMER Company A
ALL Company B
POST G-L Company B
READ CUSTOMER Company B
Now the webservices stop working... even though they have access to "Company A".
Has anyone else come across this problem. It is as if as soon as we assign a company level permission to the user they do not have permissions to call the web services. Is this because the Web Service publishing is not company specific?
Look forward to responses.
Adrian
0
Comments
I had similar kind of problem in NAV 2009, if we assign a company to a specific role then the users were not able to login to RTC, Microsoft has fixed this in NAV 2009 SP1.
Thanks
MC
The problem we have is that the client is imminent to go-live. They have a mix of NAV Classic Users and some users only accessing via the Web Services and an IE front end. Some users will get access to both te IE front end and the Classic client therefore they need company level permissions.
The client is not willing to upgrade to SP1 yet as they have only just signedd of 2009 without SP1.
Was there a hotfix for this problem do you know?
:-k
Thanks
MC
Can you confirm the steps you undertook to fix this problem by replacing the executables?
Thanks,
Mark B
Giving a user per-company permissions only (as per example above) will not give him any access to company-independent tables, like table 2000000079 Object Tracking, heavily used by NST.
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03