diff --git a/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml b/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml
index af1dec2e2..5ac4001a5 100644
--- a/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml
+++ b/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml
@@ -21,7 +21,67 @@
OK
5347bf1d-e801-486a-b4a9-c2d46a8909b6
-
+
+
+ 1111111
+ 0
+
+
+ 2016-07-22T11:52:37.42
+ 2023-05-27T07:05:55.113
+ 7471228
+
+ 45372cbb-06e0-438e-88d8-008981f7a18b
+ 7471228
+ 20f2d94a-9a7d-4580-9fb6-c36a1ce32fb9
+ igopredictiveemail app user
+
+ false
+ true
+ 0
+
+ true
+
+ false
+ 1111111
+
+
+
+ en-GB
+
+
+
+ 5
+
+ (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
+
+
+
+ 1111111
+
+ None
+
+
+
+
+
+ 1111111
+ 0
+ 0
+ 1111111
+
+
+ 2016-07-22T17:52:37.88
+ 2016-07-22T17:52:37.88
+ 44d0b80f-3550-e611-96fe-38eaa7142c61
+ Individual role for 7471228
+ Individual role for 7471228
+ Individual role for 7471228
+ true
+ false
+
+
+
\ No newline at end of file
diff --git a/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951-response.xml b/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml
similarity index 100%
rename from test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951-response.xml
rename to test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml
diff --git a/test/resources/1111111/user/retrieve-expected.md b/test/resources/1111111/user/retrieve-expected.md
index a9e5a5756..acc1becbd 100644
--- a/test/resources/1111111/user/retrieve-expected.md
+++ b/test/resources/1111111/user/retrieve-expected.md
@@ -14,7 +14,8 @@
| user test-inactive | 96 days | - | - | - | - | _ParentBU_ (1111111) | _ParentBU_ (1111111) | Administrator,
Content Creator,
Marketing Cloud Administrator | user_test-inactive@accenture.asgr | 700301951 | testExisting_user_inactive | user_test-inactive@accenture.com | user_test-inactive@accenture.com | GMT+01:00 | en-GB | 2022-06-21 01:43:02.64 | 123456 | 2019-09-06 01:59:07.097 |
-## Installed Packages (0)
+## Installed Packages (1)
| Name | Last successful Login | Active | Access Locked out | API User | Must change PW | Default BU | BU Access | Roles | Login | ID | Key | E-Mail | Notification E-Mail | Timezone | SFMC Locale | Modified Date | Modified By | Created Date |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
+| igopredictiveemail app user | never | ✓ | - | ✓ | - | _ParentBU_ (1111111) | _ParentBU_ (1111111) | | 20f2d94a-9a7d-4580-9fb6-c36a1ce32fb9 | 7471228 | 45372cbb-06e0-438e-88d8-008981f7a18b | | | GMT+01:00 | en-GB | 2023-05-27 07:05:55.113 | n/a | 2016-07-22 11:52:37.42 |
diff --git a/test/type.user.test.js b/test/type.user.test.js
index 4a6686312..18fc252ba 100644
--- a/test/type.user.test.js
+++ b/test/type.user.test.js
@@ -26,8 +26,8 @@ describe('type: user', () => {
const result = cache.getCache();
assert.equal(
result.user ? Object.keys(result.user).length : 0,
- 2,
- 'only two users expected'
+ 3,
+ 'only three users expected'
);
assert.deepEqual(
await testUtils.getActualJson('testExisting_user', 'user', '_ParentBU_'),
@@ -86,6 +86,7 @@ describe('type: user', () => {
const expectedCache = [
'testExisting_user',
'testExisting_user_inactive',
+ '45372cbb-06e0-438e-88d8-008981f7a18b',
'testNew_user',
];
await handler.deploy('testInstance/_ParentBU_', ['user'], expectedCache);
@@ -96,8 +97,8 @@ describe('type: user', () => {
const result = cache.getCache();
assert.equal(
result.user ? Object.keys(result.user).length : 0,
- 3,
- 'three users expected'
+ 4,
+ 'four users expected'
);
// confirm if result.user only includes values from expectedCache
assert.deepEqual(
@@ -130,7 +131,11 @@ describe('type: user', () => {
});
it('Should not deploy user with Marketing Cloud role', async () => {
// WHEN
- const expectedCache = ['testExisting_user', 'testExisting_user_inactive'];
+ const expectedCache = [
+ 'testExisting_user',
+ 'testExisting_user_inactive',
+ '45372cbb-06e0-438e-88d8-008981f7a18b',
+ ];
await handler.deploy('testInstance/_ParentBU_', ['user'], ['testBlocked_user']);
// THEN
assert.equal(process.exitCode, 1, 'Deployment should have thrown an error');
@@ -139,8 +144,8 @@ describe('type: user', () => {
const result = cache.getCache();
assert.equal(
result.user ? Object.keys(result.user).length : 0,
- 2,
- 'two users expected'
+ 3,
+ 'three users expected'
);
// confirm if result.user only includes values from expectedCache
assert.deepEqual(