<?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: setting onelake security column level security programmatically in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4861469#M13154</link>
    <description>&lt;P&gt;The first link is to the documentation I was looking for! Thank you. I am now able to set column level security on specific columns in the lakehouse. Just what I was looking for. As for the schema enabled lakehouse there might be a bug, but otherwise it works. Thanks!!!&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Kjetil&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2025 10:02:01 GMT</pubDate>
    <dc:creator>kjetil_hamre</dc:creator>
    <dc:date>2025-10-29T10:02:01Z</dc:date>
    <item>
      <title>setting onelake security column level security programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4860630#M13137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am very keen to see Onelake security in production. However, I would like to set column level security programmatically in a metadata driven setup of ingest into a medallion architecture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hear that the fabric rest api is the most mature programming interface. However I cannot see anything documented on onelake security. Indeed, when I set schema enabled on a lakehouse, I cannot even list tables.&lt;BR /&gt;&lt;BR /&gt;import requests&lt;BR /&gt;token_string = mssparkutils.credentials.getToken(&lt;A href="https://api.fabric.microsoft.com/" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/&lt;/A&gt;)&lt;BR /&gt;header = {'Content-Type':'application/json','Authorization': f'Bearer {token_string}'}&lt;BR /&gt;response = requests.get(url=&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{WORKSPACE_ID}/lakehouses/{LAKEHOUSE_ID}/tables" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/{WORKSPACE_ID}/lakehouses/{LAKEHOUSE_ID}/tables&lt;/A&gt;, headers=header)&lt;BR /&gt;&lt;BR /&gt;print("Status Code:", response.status_code)&lt;BR /&gt;print("Response JSON:", response.json())&lt;BR /&gt;&lt;BR /&gt;------&lt;BR /&gt;Status Code: 400&lt;BR /&gt;Response JSON:&amp;nbsp;&lt;SPAN&gt;Response JSON: {'requestId': 'blablah', 'errorCode': 'UnsupportedOperationForSchemasEnabledLakehouse', 'message': 'The operation is not supported for Lakehouse with schemas enabled.'}&lt;BR /&gt;&lt;BR /&gt;And I find no mention of any attributes regarding onelake security! Anybody has any information on if there is something available now, or if there is going to be something on this soon? Or if there is some other way of setting these things programmatically.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;K&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 13:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4860630#M13137</guid>
      <dc:creator>kjetil_hamre</dc:creator>
      <dc:date>2025-10-28T13:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting onelake security column level security programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4861169#M13148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1134405"&gt;@kjetil_hamre&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Welcome to the fun of preview features - don't try and push this into production until it becomes GA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is interesting, the error message you are getting states that lakehouses with schemas (also in preview and should not be in use in production) aren't supported, but the documentation seems to say otherwise:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/onelake-data-access-security/create-or-update-data-access-roles?tabs=HTTP#columnconstraint" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/core/onelake-data-access-security/create-or-update-data-access-roles?tabs=HTTP#columnconstraint&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to do this via the UI at all?&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/security/get-started-onelake-security" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/onelake/security/get-started-onelake-security&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you can, there might be a bug with the API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 03:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4861169#M13148</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-10-29T03:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: setting onelake security column level security programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4861469#M13154</link>
      <description>&lt;P&gt;The first link is to the documentation I was looking for! Thank you. I am now able to set column level security on specific columns in the lakehouse. Just what I was looking for. As for the schema enabled lakehouse there might be a bug, but otherwise it works. Thanks!!!&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Kjetil&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 10:02:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/setting-onelake-security-column-level-security-programmatically/m-p/4861469#M13154</guid>
      <dc:creator>kjetil_hamre</dc:creator>
      <dc:date>2025-10-29T10:02:01Z</dc:date>
    </item>
  </channel>
</rss>

