--- title: "Profile" slug: "150-core-profile" updated: 2025-03-19T14:55:53Z published: 2025-03-19T16:03:18Z canonical: "docs.developer.comcast.com/150-core-profile" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # Profile **Profile Module 1.5.0 | Core SDK** ## Usage To use the Profile module, you can import it into your project from the Firebolt SDK: ``` import { Profile } from '@firebolt-js/sdk' ``` ## Overview Methods for getting information about the current user/account profile ## Methods ### approveContentRating Verifies that the current profile should have access to mature/adult content. ``` function approveContentRating(): Promise ``` Promise resolution: Capabilities: | Role | Capability | | --- | --- | | uses | xrn:firebolt:capability:approve:content | #### Examples Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' let allow = await Profile.approveContentRating() console.log(allow) ``` Value of `allow`: ``` false ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "Profile.approveContentRating", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- ### approvePurchase Verifies that the current profile should have access to making purchases. ``` function approvePurchase(): Promise ``` Promise resolution: Capabilities: | Role | Capability | | --- | --- | | uses | xrn:firebolt:capability:approve:purchase | #### Examples Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' let allow = await Profile.approvePurchase() console.log(allow) ``` Value of `allow`: ``` false ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "Profile.approvePurchase", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- ### flags Get a map of profile flags for the current session. ``` function flags(): Promise ``` Promise resolution: [FlatMap](/docs/150-core-Types-schemas#FlatMap) Capabilities: | Role | Capability | | --- | --- | | uses | xrn:firebolt:capability:profile:flags | #### Examples Default Example JavaScript: ``` import { Profile } from '@firebolt-js/sdk' let flags = await Profile.flags() console.log(flags) ``` Value of `flags`: ``` { "userExperience": "1000" } ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "Profile.flags", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": { "userExperience": "1000" } } ``` --- ## Types