Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm uploading a lot of members and adding them to some member groups, but cant figure out why this happens.
I have tried some different thinks like deleting the umbraco.config but this didn't help.
thanks in advance for your help.
In the documentation https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberService
.AssignRoles(int[] memberIds, string role);
Assigns a role to multiple Members
But in code
.AssignRoles(int[] memberIds, string[] roles);
Assigns multiple roles to multiple Members ?
I Did a foreach loop instead like this below, and it worked.
foreach (string role in newMemberGroups) { memberService.AssignRole(umbracoMemb.Id, role); }
Dont know if this is a bug ?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
INSERT statement conflicted with the FOREIGN KEY
I'm uploading a lot of members and adding them to some member groups, but cant figure out why this happens.
I have tried some different thinks like deleting the umbraco.config but this didn't help.
thanks in advance for your help.
In the documentation https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberService
Assigns a role to multiple Members
But in code
Assigns multiple roles to multiple Members ?
I Did a foreach loop instead like this below, and it worked.
Dont know if this is a bug ?
is working on a reply...