Skip to content

Conversation

@laurenleach
Copy link
Contributor

No description provided.

cursor[bot]

This comment was marked as outdated.

resource,
groupMembership,
ur.Id,
rID,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Grant Creation Fails for Non-existent Users

The List method now creates grants for all group member IDs without validating if the corresponding users exist, as the GetUsers() call was removed. This can lead to grants for non-existent users. Additionally, if rs.NewResourceID() fails, the error message baton-servicenow: error creating principal id discards the original error details, hindering debugging.

Fix in Cursor Fix in Web

@laurenleach laurenleach merged commit e608812 into main Sep 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants