What is the significance of PrincipalId?

Group and User models have a PrincipalId, and the value is different from an ARN.

I am wondering what is the significance of this prop? I couldn’t find it documented anywhere.

For example, the value for a group looks like this:

group/d-1237f6a22f/1dd1a22d-1b00-4e56-b762-ab3ed619a7de

Hello @m0ltar,

I could only find one API call that requires this PrincipalID

but you can also delete the user by namespace and username

I can’t think of any specific use case of when I will get only the PrincipalId to delete the user, I also do not see any API for deleting the group by PrincipalId so I wonder if this is somehting just left there for backwards compatibility.

This is what I could find, hope this helps!

1 Like