Again it depends on factors like EHR, EHR Version, and Launch Type information. In the case of the EHR launch, we can get some Providers’ data attributes like NPI, ID, Name.
In the case of standalone launch, we can call the /introspect API endpoint that is only available in Garden and Terrace tiers. From this API response, we can get the user’s ID and then we can use FHIR resource Practitioner. Read with the retrieved userID to get more information of the practitioner like name, gender, and photo.
This process might simplify with latest versions of Epic as then Epic will be OIDC compliant.