Closed jonathanmedd closed 2 years ago
In favor of the change, but I don't like exposing the raw API mechanics (enum literal values, hash structures, etc)
In other parts of the API, we've accepted access level by name (with a ValidateSet for autocomplete/input-validation)
As for the AllowedTo
properties -- a little harder to model as there are 3 possible shapes and 3 different fields -- let me 🤔 about that for a bit
OK, thanks for the feedback. In the meantime I'll replace the access level values with names.
the granular/specific allowances feels like an uncommon scenario (in fact it was moved to Premium edition in 13.9), I know personally, I've always done role-based access (not specific user/groups)
as such, I'm inclined to go with the approach you had.
I'll keep an eye out for the integer -> string commit and will merge.
thanks again for contributing!
OK, understood. I actually need the granular levels for an automation requirement at work, hence the need for this contribution.....
Have updated with a more friendly way to supply the access levels. Based the approach on work you've done elsewhere in the project.
This is now published
NOTE: I made a modification to allow the input objects to be PascalCase as that is more idiomatic / consistent with the rest of the CmdLets in this library
Example use case: