Skip to content

Feature Request: Expose User Identifier and Non-Sensitive Profile DataΒ #132

@gbmarcos

Description

@gbmarcos

Hi OpenAI team! πŸ‘‹

First of all, thank you for creating such an incredible tool for developers. The Apps SDK opens up amazing possibilities for building custom experiences.

Feature Request

I'd like to suggest exposing user identification and non-sensitive profile data through the SDK to enable better personalized experiences without requiring additional authentication in our apps.

Proposed Implementation

1. User Identifier
Expose a unique user identifier via:

window.openai.user.uid

This would allow developers to:

  • Store and retrieve user preferences remotely
  • Maintain personalized settings across sessions
  • Provide continuity in the user experience
  • Avoid implementing separate authentication systems

2. Non-Sensitive User Data (Optional)
Additionally, exposing other non-sensitive user information could unlock valuable features:

window.openai.user.subscription.plan // e.g., "free", "plus", "pro"
window.openai.user.usage.tokens // Token consumption data
window.openai.user.usage.period // e.g., last 6 months stats

Use Cases

With this data, developers could:

  • Display the user's current token usage and limits
  • Show subscription tier benefits within the app
  • Provide usage analytics and insights
  • Tailor features based on subscription level
  • Create better onboarding experiences for different user types

Benefits

  • Better UX: Seamless personalization without friction
  • Privacy-friendly: No need for third-party authentication
  • Developer-friendly: Reduced implementation complexity
  • User empowerment: Transparency about their usage and plan

Security Considerations

All exposed data should be:

  • Read-only from the app's perspective
  • Limited to non-sensitive information
  • Properly documented regarding privacy implications

Would love to hear your thoughts on this! Happy to discuss implementation details or alternative approaches.

Thanks again for your awesome work! πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions