Describe the bug
save_user_groups has no member for the user group type (AccessUserUserAndGroupType, for example SystemAccount). Groups created with it are stored with a NULL type. The stock Swift CSR Accounts page (UserGroups module, ListGroupType=SystemAccount) lists only groups of type SystemAccount, so a company account created over MCP never appears there, and the sales-on-behalf flow cannot reach it.
To Reproduce
tools/list, read the inputSchema of save_user_groups.
save_user_groups {"groups":[{"id":0,"name":"TEST-ACCOUNT","parentGroupId":0}]}.
SELECT AccessUserId, AccessUserType, AccessUserUserAndGroupType FROM AccessUser WHERE AccessUserUserName='TEST-ACCOUNT'.
- Compare with the stock account groups and with the CSR Accounts paragraph settings.
Observed (DW 10.28.11, MCP add-in 0.6.0-BETA):
save_user_groups item members: address, allowBackend, city, companyName, country, customerNumber,
emailAddress, id, image, jobTitle, name, parentGroupId, state, telephone, zipCode (no type member)
save_user_groups -> {"items":[{"id":100104,"name":"TEST-ACCOUNT","parentGroupId":0,...}],"succeeded":1}
AccessUser -> 100104 | AccessUserType 2 | AccessUserUserAndGroupType NULL
stock account groups -> AccessUserType 2 | AccessUserUserAndGroupType SystemAccount (5 rows)
CSR Accounts paragraph (UserGroups module) -> <ListGroupType>SystemAccount</ListGroupType>
Expected behavior
save_user_groups accepts the group type (the values the admin UI offers), so an account group created over MCP is a SystemAccount group and lists in the CSR Accounts app. get_user_groups returns the type as well.
Environment
- Dynamicweb 10.28.11 (.NET 10 hosting), Swift 2.4
- MCP add-in 0.6.0-BETA
Describe the bug
save_user_groupshas no member for the user group type (AccessUserUserAndGroupType, for exampleSystemAccount). Groups created with it are stored with a NULL type. The stock Swift CSR Accounts page (UserGroups module,ListGroupType=SystemAccount) lists only groups of typeSystemAccount, so a company account created over MCP never appears there, and the sales-on-behalf flow cannot reach it.To Reproduce
tools/list, read theinputSchemaofsave_user_groups.save_user_groups {"groups":[{"id":0,"name":"TEST-ACCOUNT","parentGroupId":0}]}.SELECT AccessUserId, AccessUserType, AccessUserUserAndGroupType FROM AccessUser WHERE AccessUserUserName='TEST-ACCOUNT'.Observed (DW 10.28.11, MCP add-in 0.6.0-BETA):
Expected behavior
save_user_groupsaccepts the group type (the values the admin UI offers), so an account group created over MCP is aSystemAccountgroup and lists in the CSR Accounts app.get_user_groupsreturns the type as well.Environment