OliverH | Posts: 28

Create package on behalf of another user

0 votes
Hey team, I found the API call creating a package (or template ) on behalf of another user in your account in this documentation: https://docs.esignlive.com/content/c_integrator_s_guide/rest_api/packages.htm#Create2 But there's no Java implementation. Any examples in Java SDK? Thanks in advance!

Duo_Liang | Posts: 3776

Reply to: Create package on behalf of another user

1 votes
Hey Oliver, As an account manager, you can manually specify another user in your account as the sender when package/template creation. Consequently, your sender has the ownership of the package and all behaviors are expected to be the same as that the package was directly created by him/her. Below is some same code:
DocumentPackage pkg1 = PackageBuilder.newPackageNamed("Create on behalf of " + System.currentTimeMillis())
        .withSigner(SignerBuilder.newSignerWithEmail("[email protected]" )
                .withFirstName("John")
                .withLastName("Smith"))
        .withDocument(DocumentBuilder.newDocumentWithName("document 1")
        		.fromFile("your_file_path")
        		.withSignature(SignatureBuilder.signatureFor("[email protected]")
        				.onPage(0)
        				.atPosition(100, 100)
        				.withSize(250, 75)))
        .withSenderInfo(SenderInfoBuilder.newSenderInfo("[email protected]"))
        .build();
And there's few points that may interest you with this feature: • In Web UI, either package or template will only show up in your sender’s folder because it’s your sender that has the ownership of the package/template. • Your actual creator of the package/template won’t be added to the package/template as a signer whereas your sender will. • If you’ve set Account Visibility to your template, it appears at the “Use Template” drop-down list in all account user’s dashboard. Hope this could help! Duo

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off