users: cannot update profile fields of external user

This commit is contained in:
Girish Ramakrishnan
2024-01-20 10:41:24 +01:00
parent bd1ab000f3
commit c99c24b3bd
7 changed files with 174 additions and 93 deletions
+6
View File
@@ -544,6 +544,12 @@ describe('External LDAP', function () {
const [error] = await safe(groups.setMembership(user, []));
expect(error.reason).to.be(BoxError.BAD_STATE);
});
it('cannot update profile of external user', async function () {
const user = await users.getByUsername(gLdapUsers[0].username);
const [error] = await safe(users.updateProfile(user, { displayName: 'another name'}, auditSource));
expect(error.reason).to.be(BoxError.BAD_STATE);
});
});
describe('user auto creation', function () {