<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://www.schweda.net/blog_rss.php?bid=410" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Berechtigung eines Benutzers für einen Sicherheitsschlüssel abfragen]]></title>
<description><![CDATA[
<p>Mit diesem St&uuml;ckchen Code kann man in Dynamics AX pr&uuml;fen, welche Berechtigung ein Benutzer f&uuml;r einen bestimmten Sicherheitsschl&uuml;ssel (Securitykey) hat.
</p>

<div class="div_blog_axcode">static void GetSecurityKeyAccess4User(Args _args)<br />
{<br />
&nbsp;&nbsp;&nbsp; Dictionary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dictionary = new Dictionary();<br />
&nbsp;&nbsp;&nbsp; securityKeyId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; securityKeyId;<br />
&nbsp;&nbsp;&nbsp; SecurityKeySet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; securityKeySet = new SecurityKeySet();<br />
&nbsp;&nbsp;&nbsp; UserId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userId = 'user1';<br />
&nbsp;&nbsp;&nbsp; SelectableDataArea&nbsp; dataArea = 'ceu';<br />
&nbsp;&nbsp;&nbsp; AccessType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; accessType;<br />
&nbsp;&nbsp;&nbsp; ;<br />
<br />
&nbsp;&nbsp;&nbsp; securityKeyId = Dictionary.securityKeyName2Id(&quot;BatchReport&quot;);<br />
<br />
&nbsp;&nbsp;&nbsp; securityKeySet.loadUserRights(userId, dataArea);<br />
<br />
&nbsp;&nbsp;&nbsp; AccessType = securityKeySet.access(securityKeyId);<br />
<br />
&nbsp;&nbsp;&nbsp; info(enum2str(AccessType));<br />
}
</div>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Fri, 24 Jun 2011 20:49:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=410</link>
<comments>https://www.schweda.net/blog_ax.php?bid=410</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=410</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=410</wfw:commentRss>
</item>
<item>
<title>Kommentar von Mark</title>
<description><![CDATA[In der Global-Klasse gibt es übrigends jede Menge Helperfunktionen die Sicherheitsrechte auf bestimmte Objekte abprüfen: 
has*Access...
Und noch was: Elemente bitte mit der entsprechenden Funktion prüfen:

z.B. ReportStr() oder menuItemOutputStr(), dann wird zur Kompilezeit geprüft ob ein Element vorhanden ist...]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Wed, 13 Jul 2011 10:49:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=410</link>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=410</guid>
<author>Mark</author>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heinz Schweda</dc:creator>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=410</wfw:commentRss>
</item>
</channel>
</rss>	
