Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
DEVELOPMENT (x++)
 What?Axapta.com Forums : CATEGORIES : DEVELOPMENT (x++)
Message Icon Topic: AIF access rights Post Reply Post New Topic
Author Message
Steen
Newbie
Newbie


Joined: 14 Jul 2010
Online Status: Offline
Posts: 1
Quote Steen Replybullet Topic: AIF access rights
    Posted: 14 Jul 2010 at 2:02pm

Hello,

Is there a recommended setup or a guideline on how to make the AIF (available to users without giving the user Admin rights (Basic->Periodic->Application integration framework)

Thanks in advance. Kind regards

 

IP IP Logged
mikedole
Newbie
Newbie
Avatar

Joined: 20 Aug 2010
Location: Netherlands
Online Status: Offline
Posts: 1
Quote mikedole Replybullet Posted: 20 Aug 2010 at 8:07am
Even though you've setup an endpoint with a user group (which isn't an admin group) AX won't proces tasks created by this user Confused.
Shows up as errors in the queue without specifying what the error exactly's about...
 
I guess there's a hotfix available
 
Problem is that in the tables AIFDocumentlog and AIFMessagelog the following method doesn't return a sid, if you change them to:
 
public boolean aosValidateInsert()
{
    #Admin
    boolean ret;
    userId currentUserId;
    sid currentUserSid;
    AifMessageLog messageLog;
    ;
    ret = super();

    if(ret)
    {
        currentUserId = curuserid();

        if (AifUtil::isGroupMember(currentUserId, #AdminUserGroup))
        {
            ret = true;
        }
        else
        {
            select SourceEndpointUserID
                from messageLog
                where messageLog.MessageId == this.MessageId;

            currentUserSid = AifUtil::getAxUserSid(currentUserId);

//REM ORG_CODE:
            //ret = currentUserSid == AifUtil::getWindowsUserSid(messageLog.SourceEndpointUserId));
            ret = (!messageLog.SourceEndpointUserId || currentUserSid == AifUtil::getWindowsUserSid(messageLog.SourceEndpointUserId));
            // NSP_end
        }
    }

    return ret;
}

you should be able to let 'any user' (if specified in the endpoint) use the AIF
 
Regards,
 
Mike Dole


Edited by mikedole - 20 Aug 2010 at 8:07am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.078 seconds.