-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cases] Suggest user profiles with read permission #172047
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@@ -62,7 +59,7 @@ export default ({ getService }: FtrProviderContext): void => { | |||
suggestedSecUsers = await suggestUserProfiles({ | |||
supertest: supertestWithoutAuth, | |||
req: { | |||
name: secOnlyInfo.username!, | |||
name: 'all_spaces', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
securityPluginStart.userProfiles.suggest
seems to do a fuzzy match on the name field so sec_user_all_spaces
was now returning another security user, sec_user_read
. Changing it here guarantees the right profile is returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it and I could assign a user with only read
access to a case.
auth: { user: superUser, space: 'space1' }, | ||
}); | ||
|
||
expectSnapshot(profiles.map(({ user, data }) => ({ user, data }))).toMatchInline(` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL 🚀
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @adcoelho |
Fixes #171446
Summary
We will now also suggest users with only
Read Cases
permissions for case assignment.Release notes
Fixed a bug that prevented users with read permission from being assigned to cases.