Developer forum

Forum » Integration » AccessUserGroups not allowing groups to be added

AccessUserGroups not allowing groups to be added

Casper Andersen
Reply

Hello DynamicWeb

i am making an integration between webcrm and dynamicweb, this has focuse on the Users comming from WebCRM and being imported into DynamicWeb

so far everything is working well, but i ran into an issue today.

The groups a user is part of, are controlled in webCRM, but for each person object i can get the name of each group and then use that to find the group name and id in dynamicweb using the UserManagement.Group Class, this works aswell and i get the group fine, then for each group i get i add the group id to a string with a @ char in the front and after each group id, i get a string that looks like this @14489@@14490@@19074@ i checked the data inside the database and this matches perfectly, i am trying to add this information to the AccessUserGroups column inside the AccessUser table.

Information:
Source Reader: Custom
Destination Provider: User Provider
Site: Localhost

note that all other fields are working fine and the error i'm getting is:

Can't associate the user 'hb@bha-revision.dk' with non existing group '@14489@@14490@@19074@'

as far as i understand, AccessUserGroups is for a collection of groups.

So what am i doing wrong ?


Replies

 
Casper Andersen
Reply

I should mention i am running DynamicWeb version 8.8.1.6

i tried upgrading to 8.9.0.0 but this did not fix the problem

 
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Casper,
you need to set the groups as a comma-separated list of groups, for your example it should be: "14489,14490,19074"
The User destination provider will handle this list and fill the "AccessUserGroups" column according its Dynamicweb format with "@" separators.
Regards, Dmitrij

Votes for this answer: 1
 
Casper Andersen
Reply

Hi Dmitriy

Thanks a lot for the answer, worked like a treat.

 

You must be logged in to post in the forum