users: cannot update profile fields of external user
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user