<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic menu based on API response in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801583#M34414</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/567509"&gt;@Sk05&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I would personally store this information in a cookie or something similar. DO NOT store any personal information, only the permissions that a user has, and that way, you can use HubL to access that information with `&lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables#http-request-variables" target="_blank" rel="noopener"&gt;request.cookies&lt;/A&gt;`.&lt;BR /&gt;&lt;BR /&gt;If the permission functionality is more than just showing different menu items, and you will allow users to manipulate data from the HS website, you definitely need a different approach because of security.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 07:13:22 GMT</pubDate>
    <dc:creator>Teun</dc:creator>
    <dc:date>2023-06-01T07:13:22Z</dc:date>
    <item>
      <title>Dynamic menu based on API response</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801561#M34413</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have the Login feature and SITEs are built in HubSpot, All the user's information and other information is stored in our client's existing server DB.&lt;BR /&gt;&lt;BR /&gt;Our Problem is that After login we have to show the menus based on the API response of the user's permission&lt;BR /&gt;&lt;BR /&gt;For Example,&lt;BR /&gt;Users have Post access they can see POST Page in the menu.&lt;BR /&gt;Users have News access they can see NEWS Page in the menu.&lt;BR /&gt;Users have Article access they can see the ARTICLE Page in the menu. like that&lt;BR /&gt;&lt;BR /&gt;Whoever does not have permission to view POST, NEWS, ARTICLE we should not show this in the menu list.&lt;BR /&gt;&lt;BR /&gt;So, please share your ideas. Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 05:43:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801561#M34413</guid>
      <dc:creator>Sk05</dc:creator>
      <dc:date>2023-06-01T05:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic menu based on API response</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801583#M34414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/567509"&gt;@Sk05&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I would personally store this information in a cookie or something similar. DO NOT store any personal information, only the permissions that a user has, and that way, you can use HubL to access that information with `&lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables#http-request-variables" target="_blank" rel="noopener"&gt;request.cookies&lt;/A&gt;`.&lt;BR /&gt;&lt;BR /&gt;If the permission functionality is more than just showing different menu items, and you will allow users to manipulate data from the HS website, you definitely need a different approach because of security.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 07:13:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801583#M34414</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2023-06-01T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic menu based on API response</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801682#M34425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;Thanks for the reply. Yes that's work&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 10:26:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Dynamic-menu-based-on-API-response/m-p/801682#M34425</guid>
      <dc:creator>Sk05</dc:creator>
      <dc:date>2023-06-01T10:26:20Z</dc:date>
    </item>
  </channel>
</rss>

