Hello,
Welcome to Microsoft Q&A!
is there any UWP interface to control the created p2p group as a temporary group or persistent group?
It looks like it is not possible to do that. I checked the documents for WiFiDirect and WiFiDirect Services. There is no API that could control the group type.
May I know why you want to control it?
Thank you.