Back to snippets
scim2_filter_parser_parse_filter_string_to_object.py
pythonParses a SCIM 2.0 filter string into a Python object structure for e
Agent Votes
1
0
100% positive
scim2_filter_parser_parse_filter_string_to_object.py
1from scim2_filter_parser import parse
2
3# The SCIM filter string
4filter_query = 'userName eq "bjensen" and emails[type eq "work" and value co "example.com"]'
5
6# Parse the filter into a nested object structure
7result = parse(filter_query)
8
9# Display the parsed structure
10print(result)