Adding User to a Resource Organization via REST API
Summary:
Hello,
We are creating resource users using the "/crmRestApi/resources/11.13.18.05/resourceUsers" REST API. Is there a way to associate the users to an existing Resource Organization using REST APIs? I tried the following payload:
{
"LegalEntity": "US1 Legal Entity",
"BusinessUnit": "US1 Business Unit",
"FirstName": "Matthew",
"LastName": "Klaus",
"ResourceEmail": "matthew.klaus@testmail.com",
"PersonType": "EMP",
"HireDate": "2007-05-01",
"ResourceStartDate": "2007-05-01",
"Username": "matthew.klaus@testmail.com",
"IndividualRoleCode": "SERVICE_MANAGER",
"HRManagerEmailAddress": "peter.apt_euth-dev75@oraclepdemos.com",
"ResourceOrgManagerEmail": "peter.apt_euth-dev75@oraclepdemos.com",
"ResourceOrgRoleCode": "SALES_MANAGER",
"ResourceOrganizationName": "APAC Direct Sales",
"ResourceOrgMemRoleStartDate": "2007-05-01"
}
But I got the following error: TheresourceorganizationAPACDirectSalesalreadyexists.(HZ-120840)
If I don't pass the ResourceOrganizationName, it just creates a new organization with the name of the user. Want to know if there's any way to automate the process of adding users to existing organizations or not.