Closed caiwl closed 5 years ago
@caiwl You should use the following instead:
spctl create rolepolicy -c "grant user wcai admin if b =c" --service-name=sjSXI7xvE6uRtohxQWDiVSK9v8zPpXxHL
rolepolicy can only grant principals to role, so you shouldn't use role admin
.
@xinnong-wang the keyword "role" is optional by design here. Users may or may not add "role". We will support both cases.
Seems the keyword "role" is treated as role name in below scenario. It is a bug.