Skip to content

Commit

Permalink
#139: remove Marketing Cloud role, add TimeZone and LocalCode
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Mar 22, 2023
1 parent 228efc5 commit 33875de
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"c__RoleNamesGlobal": [
"Administrator",
"Distributed Sending User",
"Individual role for 700301950",
"Marketing Cloud Administrator"
]
"Individual role for 700301950"
],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"DefaultBusinessUnit": 1111111,
"c__type": "User",
"c__AssociatedBusinessUnits": [1111111, 9999999],
"c__RoleNamesGlobal": [
"Administrator",
"Distributed Sending User",
"Marketing Cloud Administrator"
]
"c__RoleNamesGlobal": ["Administrator", "Distributed Sending User"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
26 changes: 11 additions & 15 deletions test/resources/1111111/accountUser/create-response.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
<NotificationEmailAddress>testNew_user@accenture.com</NotificationEmailAddress>
<IsLocked>false</IsLocked>
<DefaultBusinessUnit>1111111</DefaultBusinessUnit>
<Locale>
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<LocaleCode>en-GB</LocaleCode>
</Locale>
<TimeZone>
<PartnerKey xsi:nil="true" />
<ID>5</ID>
<ObjectID xsi:nil="true" />
<Name>(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *</Name>
</TimeZone>
<Roles>
<Role>
<Client>
Expand Down Expand Up @@ -74,21 +85,6 @@
</AssignmentConfiguration>
</AssignmentConfigurations>
</Role>
<Role>
<Client>
<ID>1111111</ID>
<EnterpriseID>1111111</EnterpriseID>
</Client>
<PartnerKey xsi:nil="true" />
<ObjectID>63a50610-315c-e111-beee-8e001800001f</ObjectID>
<Name>Marketing Cloud Administrator</Name>
<AssignmentConfigurations>
<AssignmentConfiguration>
<AccountUserId>717510285</AccountUserId>
<AssignmentConfigureType>RoleUser</AssignmentConfigureType>
</AssignmentConfiguration>
</AssignmentConfigurations>
</Role>
</Roles>
</Object>
</Results>
Expand Down
28 changes: 11 additions & 17 deletions test/resources/1111111/accountUser/retrieve-response.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@
<AccountType>None</AccountType>
<Subscription xsi:nil="true" />
</DefaultBusinessUnitObject>
<Locale>
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<LocaleCode>en-GB</LocaleCode>
</Locale>
<TimeZone>
<PartnerKey xsi:nil="true" />
<ID>5</ID>
<ObjectID xsi:nil="true" />
<Name>(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *</Name>
</TimeZone>
<Roles>
<Role>
<Client>
Expand Down Expand Up @@ -120,23 +131,6 @@
<IsPrivate>true</IsPrivate>
<IsSystemDefined>false</IsSystemDefined>
</Role>
<Role>
<Client>
<ID>0</ID>
<CreatedBy>0</CreatedBy>
<ModifiedBy>0</ModifiedBy>
<EnterpriseID>0</EnterpriseID>
</Client>
<PartnerKey xsi:nil="true" />
<CreatedDate>2012-02-21T02:09:19.983</CreatedDate>
<ModifiedDate>2013-12-23T16:48:50.533</ModifiedDate>
<ObjectID>63a50610-315c-e111-beee-8e001800001f</ObjectID>
<CustomerKey>SYS_DEF_IMHADMIN</CustomerKey>
<Name>Marketing Cloud Administrator</Name>
<Description>Assign Marketing Cloud roles to users and manage Mobile, Social and Sites Channels, Hub Apps and Marketing Cloud Tools</Description>
<IsPrivate>false</IsPrivate>
<IsSystemDefined>true</IsSystemDefined>
</Role>
</Roles>
</Results>
</RetrieveResponseMsg>
Expand Down
26 changes: 11 additions & 15 deletions test/resources/1111111/accountUser/update-response.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
<NotificationEmailAddress>user_test@accenture.com</NotificationEmailAddress>
<IsLocked>false</IsLocked>
<DefaultBusinessUnit>9999999</DefaultBusinessUnit>
<Locale>
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<LocaleCode>en-GB</LocaleCode>
</Locale>
<TimeZone>
<PartnerKey xsi:nil="true" />
<ID>5</ID>
<ObjectID xsi:nil="true" />
<Name>(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *</Name>
</TimeZone>
<Roles>
<Role>
<Client>
Expand Down Expand Up @@ -89,21 +100,6 @@
</AssignmentConfiguration>
</AssignmentConfigurations>
</Role>
<Role>
<Client>
<ID>1111111</ID>
<EnterpriseID>1111111</EnterpriseID>
</Client>
<PartnerKey xsi:nil="true" />
<ObjectID>63a50610-315c-e111-beee-8e001800001f</ObjectID>
<Name>Marketing Cloud Administrator</Name>
<AssignmentConfigurations>
<AssignmentConfiguration>
<AccountUserId>700301950</AccountUserId>
<AssignmentConfigureType>RoleUser</AssignmentConfigureType>
</AssignmentConfiguration>
</AssignmentConfigurations>
</Role>
</Roles>
</Object>
</Results>
Expand Down
4 changes: 3 additions & 1 deletion test/resources/1111111/user/build-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
"DefaultBusinessUnit": "1111111",
"c__type": "User",
"c__AssociatedBusinessUnits": ["1111111", "1111111"],
"c__RoleNamesGlobal": ["Administrator", "Content Creator", "Marketing Cloud Administrator"]
"c__RoleNamesGlobal": ["Administrator", "Content Creator"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
8 changes: 3 additions & 5 deletions test/resources/1111111/user/create-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"DefaultBusinessUnit": 1111111,
"c__type": "User",
"c__AssociatedBusinessUnits": [1111111, 9999999],
"c__RoleNamesGlobal": [
"Administrator",
"Distributed Sending User",
"Marketing Cloud Administrator"
]
"c__RoleNamesGlobal": ["Administrator", "Distributed Sending User"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
4 changes: 3 additions & 1 deletion test/resources/1111111/user/retrieve-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
"DefaultBusinessUnit": 1111111,
"c__type": "User",
"c__AssociatedBusinessUnits": [1111111, 9999999],
"c__RoleNamesGlobal": ["Administrator", "Content Creator", "Marketing Cloud Administrator"]
"c__RoleNamesGlobal": ["Administrator", "Content Creator"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
4 changes: 3 additions & 1 deletion test/resources/1111111/user/template-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
"DefaultBusinessUnit": "1111111",
"c__type": "User",
"c__AssociatedBusinessUnits": ["1111111", "{{{mid}}}"],
"c__RoleNamesGlobal": ["Administrator", "Content Creator", "Marketing Cloud Administrator"]
"c__RoleNamesGlobal": ["Administrator", "Content Creator"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}
8 changes: 3 additions & 5 deletions test/resources/1111111/user/update-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"DefaultBusinessUnit": 9999999,
"c__type": "User",
"c__AssociatedBusinessUnits": [9999999],
"c__RoleNamesGlobal": [
"Administrator",
"Distributed Sending User",
"Marketing Cloud Administrator"
]
"c__RoleNamesGlobal": ["Administrator", "Distributed Sending User"],
"c__TimeZoneName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna *",
"c__LocaleCode": "en-GB"
}

0 comments on commit 33875de

Please sign in to comment.