Question

How to set a user to get data with DataService?

For syncing with an external app, I created a user called SyncerConnection.

 

I use DataService to connect with Creatio and I try to get AccountCommunication.

 

401 - Unauthorized: Access is denied due to invalid credentials.



 

You do not have permission to view this directory or page using the credentials that you supplied.



  

But it works for another user.

What is needed for the user SyncerConnection to get data with DataService?

 

Like 0

Like

3 comments

Hello Yuriy,



You can try to add the role of system administrator to your user and see how it will be after that. In case if it doesn't help please mail us on support@creatio.com and give us the external access under the supervisor, credentials of your user and the example of your request. 

We couldn't get the error on our side when we tried to reproduce it with access rights on the operation for the AccountCommunication object and with the restrictions on the CanUseODataService operation (that theoretically might limit the access). In addition, maybe something went wrong with BRMCSRF cookies in Postman when the request was sent on your side, but again it's only our assumption, since we need a full description of the problem. 



Best Regards,

Tetiana

Well, I removed the sales creatio commerce edition cloud license from one user and gave it to the SyncerConnection user and it worked.

But the number of licenses is limited, is it necessary?

Hello,



Yes, that's true that the marketing active contacts license doesn't give a right to work in the system in usual mode and it is used mostly for checking the ability of sending mails from the system.

 

Here are all the rights that the license gives:



Active marketing contact licenses ("marketing creatio 1000 active contacts"). The licenses are used for creating records in the [ Email ], [ Campaigns ], and [ Events ] sections. The number of licenses must not be less than the number of active contacts who receive marketing communications (emails, campaigns, or events).



Best Regards,

Tetiana

Show all comments