I wrote an expression plug-in that returns a writer. Every thing has worked fin

I wrote an expression plug-in that returns a writer. Every thing has worked fine when used by a "System Designer" but when attempted to execute as "Basic User", the following error is returned. How do I set security for writer function to allow a "Basic User".

[local!testWriter:The user [test.ccat.submitter] does not have sufficient privileges to perform the requested action.]

OriginalPostID-166633

OriginalPostID-166633

  Discussion posts and replies are publicly visible

Parents
  • You don't need any credentials just the username:

    ServiceContext myOtherAdminUserServiceContext= ServiceContextFactory.getServiceContext(myOtherAdminUser);
    m_typeSvc = ServiceLocator.getTypeService(myOtherAdminUserServiceContext)
    m_typeSvc


    TypedValue oneCDTValue = m_typeSvc.select(m_mainCDTValue,                                                            cdtIndexList);
Reply
  • You don't need any credentials just the username:

    ServiceContext myOtherAdminUserServiceContext= ServiceContextFactory.getServiceContext(myOtherAdminUser);
    m_typeSvc = ServiceLocator.getTypeService(myOtherAdminUserServiceContext)
    m_typeSvc


    TypedValue oneCDTValue = m_typeSvc.select(m_mainCDTValue,                                                            cdtIndexList);
Children
No Data