{"id":5012,"date":"2025-02-05T13:25:22","date_gmt":"2025-02-05T19:25:22","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=5012"},"modified":"2025-02-05T13:27:42","modified_gmt":"2025-02-05T19:27:42","slug":"adding-a-user","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/faxfinder\/web-services-api\/user-apis\/adding-a-user\/","title":{"rendered":"Adding a User"},"content":{"rendered":"<p><em>Requires FaxFinder 3.0.4 or higher.<\/em><\/p>\n<table border=1 cellspacing=0 cellpadding=0 width=550 style='border-collapse:collapse;border:none'>\n<tr>\n<td width=150 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>HTTP Request Line<\/p>\n<\/td>\n<td width=400 colspan=2 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>POST \/ffws\/v1\/users HTTP\/1.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=150 rowspan=3 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>HTTP Response Status Codes<\/p>\n<\/td>\n<td width=125 valign=top style='border:solid #4F81BD 1.0pt;padding:0in .01in 0in .01in'>\n<p>200 OK<\/p>\n<\/td>\n<td width=275 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>Created user.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=125 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>403 Forbidden<\/p>\n<\/td>\n<td width=275 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>Authenticated user does not have permission to add users.<\/p>\n<\/td>\n<\/tr>\n<\/tr>\n<tr>\n<td width=125 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>400 Bad Request<\/p>\n<\/td>\n<td width=275 valign=top style='border:solid #4F81BD 1.0pt; padding:0in .01in 0in .01in'>\n<p>The provided XML is not valid.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h4>Example<\/h4>\n<pre class=\"brush:xml\">\r\nPOST \/ffws\/v1\/users HTTP\/1.1\r\ncontent-type: application\/xml\r\nauthorization: Basic YWRtaW46YWRtaW4=\r\n&lt;?xml version=\u201d1.0\u201d encoding=\u201dUTF-8\u201d?&gt;\r\n&lt;user&gt;\r\n\t&lt;name&gt;New User 1&lt;\/name&gt;\r\n\t&lt;username&gt;user1&lt;\/username&gt;\r\n\t&lt;password&gt;user1&lt;\/password&gt;\r\n\t&lt;email_address&gt;admin@Example.com&lt;\/email_address&gt;\r\n\t&lt;phone_number&gt;218-555-3333&lt;\/phone_number&gt;\r\n\t&lt;fax_number&gt;218-555-3334&lt;\/fax_number&gt;\r\n\t&lt;organization&gt;Example Org&lt;\/organization&gt;\r\n\t&lt;priority&gt;1&lt;\/priority&gt;\r\n\t&lt;max_attempts&gt;2&lt;\/max_attempts&gt;\r\n\t&lt;interval&gt;600&lt;\/interval&gt;\r\n\t&lt;receipt&gt;never&lt;\/receipt&gt;\r\n\t&lt;receipt_attachment&gt;none&lt;\/receipt_attachment&gt;\r\n&lt;\/user&gt;\r\n-----------------------------------\r\n&lt;?xml version=\u201d1.0\u201d encoding=\u201dUTF-8\u201d?&gt;\r\n&lt;response&gt;\r\n\t&lt;message&gt;Created&lt;\/message&gt;\r\n\t&lt;user&gt;\r\n\t\t&lt;user_url&gt;https:\/\/172.16.0.3\/ffws\/v1\/users\/user1&lt;\/user_url&gt;\r\n\t\t&lt;name&gt;New User 1&lt;\/name&gt;\r\n\t\t&lt;username&gt;user1&lt;\/username&gt;\r\n\t\t&lt;email_address&gt;admin@Example.com&lt;\/email_address&gt;\r\n\t\t&lt;phone_number&gt;218-555-3333&lt;\/phone_number&gt;\r\n\t\t&lt;fax_number&gt;218-555-3334&lt;\/fax_number&gt;\r\n\t\t&lt;organization&gt;Example Org&lt;\/organization&gt;\r\n\t\t&lt;default_cover_page_enabled&gt;false&lt;\/default_cover_page_enabled&gt;\r\n\t\t&lt;default_cover_page_name&gt;&lt;\/default_cover_page_name&gt;\r\n\t\t&lt;priority&gt;1&lt;\/priority&gt;\r\n\t\t&lt;max_attempts&gt;2&lt;\/max_attempts&gt;\r\n\t\t&lt;interval&gt;600&lt;\/interval&gt;\r\n\t\t&lt;receipt&gt;never&lt;\/receipt&gt;\r\n\t\t&lt;receipt_attachment&gt;none&lt;\/receipt_attachment&gt;\r\n\t&lt;\/user&gt;\r\n&lt;\/response&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Requires FaxFinder 3.0.4 or higher. HTTP Request Line POST \/ffws\/v1\/users HTTP\/1.1 HTTP Response Status Codes 200 OK Created user. 403 Forbidden Authenticated user does not have permission to add users. 400 Bad Request The provided XML is not valid. Example POST \/ffws\/v1\/users HTTP\/1.1 content-type: application\/xml authorization: Basic YWRtaW46YWRtaW4= &lt;?xml version=\u201d1.0\u201d encoding=\u201dUTF-8\u201d?&gt; &lt;user&gt; &lt;name&gt;New User 1&lt;\/name&gt; [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":5405,"menu_order":23,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-5012","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=5012"}],"version-history":[{"count":16,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5012\/revisions"}],"predecessor-version":[{"id":5668,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5012\/revisions\/5668"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5405"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=5012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}