Create an attribute to represent the city the user lives in.
- In the PingAuthorize Policy Editor, go to Trust Framework and click Attributes.
- From the + menu, select Add new Attribute.
-
For the name, replace Untitled with
city
. - For Parent, select TokenOwner.
- Click the + next to Resolvers and click + Add Resolver.
- For Resolver type, select Attribute and specify a value of TokenOwner.
- Click the + next to Value Processors and click + Add Processor.
-
For Processor, select JSON Path
and specify a value of
$.l[0]
. (The LDAP attributel
represents locality.) - For the processor's Value type, select String.
- For Value Settings, set the Type to String.
-
Click Save changes.
You have an attribute for the user's city, as shown in the following image.