def grant(id, pgroup)
      wf_user_id?(id)
      raise ArgumentError unless pgroup.is_a?(String)
      api.post([id, 'grant'].uri_concat, "group=#{pgroup}",
               'application/x-www-form-urlencoded')
    end
def grant(id, pgroup)
      wf_user_id?(id)
      raise ArgumentError unless pgroup.is_a?(String)
      api.post([id, 'grant'].uri_concat, "group=#{pgroup}",
               'application/x-www-form-urlencoded')
    end
PUT /api/v2/user/id/grant
 Grants a specific user permission.

 @param id [String] ID of the user
 @param pgroup [String] permission group to grant to user. We
   do not validate this so that changes to the API do not mandate
   changes to the SDK. At the time of writing, valid values are
   browse,
   agent_management, alerts_management, dashboard_management,
   embedded_charts, events_management,
   external_links_management, host_tag_management,
   metrics_management, user_management,
 @return [Wavefront::Response]