Thank you so much for going through this.
I was wondering if I could pick your brain - I have basically copied all of the code as a proof of concept - I am having an issue getting the group member emails to populate correctly.
I have created a new Role , gave it a tag , create a new governance group
example
Role: Test-Remote Access
Tag: WORKGROUP_RA_APPROVAL
Governance Group: RA_APPROVAL ( i also tried it with a space)
I can get ServiceNow to get all the way through the script until it gets to the parsing of the email’s
I was able to log and I get this error twice
{“detailCode”:“404 Not found”,“trackingId”:“TrackingIDhere”,“messages”:[{“locale”:“und”,“localeOrigin”:“REQUEST”,“text”:“The server did not find a current representation for the target resource.”},{“locale”:“en-US”,“localeOrigin”:“DEFAULT”,“text”:“The server did not find a current representation for the target resource.”}],“causes”:}
But right after it actually parses/logs the data
[{“email":"[email protected]”,“type”:“IDENTITY”,“id”:“randomID”,“name”:“user1, Ashley”},{“email":"[email protected]”,“type”:“IDENTITY”,“id”:“randomID”,“name”:“user2, Ben”}]
It seems the API is giving a 404 twice and then says oh wait I do see the data here it is - but by that time it is already defaulting to the internal security group.
Is there something else I should be doing or could look at - I know your setup was using Access Profiles in the video.